From 7cdaa24f3ba637804aca9247ae809c4cc1acc6ed Mon Sep 17 00:00:00 2001
From: lipengwei <lipengwei@nianben.com>
Date: Wed, 27 May 2020 09:41:28 +0800
Subject: [PATCH] 3.8.4

---
 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