From 49b8839fda3439edc31581527e84036e58f55f0f Mon Sep 17 00:00:00 2001
From: lpw <pengwei.li@gamehollywood.com>
Date: Tue, 26 Jan 2021 09:43:00 +0800
Subject: [PATCH] 3.9.2

---
 frameworks/Bolts.framework/Headers/BFTaskCompletionSource.h |   24 +++++-------------------
 1 files changed, 5 insertions(+), 19 deletions(-)

diff --git a/frameworks/Bolts.framework/Headers/BFTaskCompletionSource.h b/frameworks/Bolts.framework/Headers/BFTaskCompletionSource.h
index a403553..f94c18f 100644
--- a/frameworks/Bolts.framework/Headers/BFTaskCompletionSource.h
+++ b/frameworks/Bolts.framework/Headers/BFTaskCompletionSource.h
@@ -12,7 +12,7 @@
 
 NS_ASSUME_NONNULL_BEGIN
 
-@class BFTask<ResultType>;
+@class BFTask<__covariant ResultType>;
 
 /*!
  A BFTaskCompletionSource represents the producer side of tasks.
@@ -36,21 +36,14 @@
  Attempting to set this for a completed task will raise an exception.
  @param result The result of the task.
  */
-- (void)setResult:(nullable ResultType)result;
+- (void)setResult:(nullable ResultType)result NS_SWIFT_NAME(set(result:));
 
 /*!
  Completes the task by setting the error.
  Attempting to set this for a completed task will raise an exception.
  @param error The error for the task.
  */
-- (void)setError:(NSError *)error;
-
-/*!
- Completes the task by setting an exception.
- Attempting to set this for a completed task will raise an exception.
- @param exception The exception for the task.
- */
-- (void)setException:(NSException *)exception;
+- (void)setError:(NSError *)error NS_SWIFT_NAME(set(error:));
 
 /*!
  Completes the task by marking it as cancelled.
@@ -62,21 +55,14 @@
  Sets the result of the task if it wasn't already completed.
  @returns whether the new value was set.
  */
-- (BOOL)trySetResult:(nullable ResultType)result;
+- (BOOL)trySetResult:(nullable ResultType)result NS_SWIFT_NAME(trySet(result:));
 
 /*!
  Sets the error of the task if it wasn't already completed.
  @param error The error for the task.
  @returns whether the new value was set.
  */
-- (BOOL)trySetError:(NSError *)error;
-
-/*!
- Sets the exception of the task if it wasn't already completed.
- @param exception The exception for the task.
- @returns whether the new value was set.
- */
-- (BOOL)trySetException:(NSException *)exception;
+- (BOOL)trySetError:(NSError *)error NS_SWIFT_NAME(trySet(error:));
 
 /*!
  Sets the cancellation state of the task if it wasn't already completed.

--
Gitblit v1.8.0