From 00986fc19fd1149fbbf15b1f755ef15aed092dbb Mon Sep 17 00:00:00 2001
From: Li Feng
Date: Fri, 30 Aug 2024 20:29:33 +1000
Subject: [PATCH] Revert "Make DJFuture results nonnull in objective C"
This reverts commit 1135f3a4971b9ca173fc5fcaabb9ab3d91f317f0.
---
support-lib/objc/DJFuture.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/support-lib/objc/DJFuture.h b/support-lib/objc/DJFuture.h
index be1faa8a..c456cfe5 100644
--- a/support-lib/objc/DJFuture.h
+++ b/support-lib/objc/DJFuture.h
@@ -25,7 +25,7 @@
// If the future is ready, then calling its `get` method will not block.
- (BOOL) isReady;
// Block and wait for the result (or exception). This can only be called once.
-- (nonnull DJValue) get;
+- (nullable DJValue) get;
// Tell the future to Call the specified handler routine when it becomes
// ready. Returns a new future that wraps the return value of the handler
// routine. The current future becomes invalid after this call.
@@ -40,7 +40,7 @@
- (nonnull DJFuture *)getFuture;
// `setValue` or `setException` can only be called once on a promise. After
// which the internal state becomes invalid.
-- (void)setValue:(nonnull DJValue)val;
+- (void)setValue:(nullable DJValue)val;
// for NSNull* (void)
- (void)setValue;
- (void)setException:(nonnull NSException *)exception;