From 9febd95e999e7c9187104859720ec7c2645cfec3 Mon Sep 17 00:00:00 2001
From: Wuyx <1139965056@qq.com>
Date: Wed, 11 Jan 2017 10:14:56 +0800
Subject: [PATCH] WAFbImpl3.6.1
---
frameworks/Bolts.framework/Headers/BFTask.h | 22 +++++++++++++++++-----
1 files changed, 17 insertions(+), 5 deletions(-)
diff --git a/frameworks/Bolts.framework/Headers/BFTask.h b/frameworks/Bolts.framework/Headers/BFTask.h
index 3cd0405..071f994 100644
--- a/frameworks/Bolts.framework/Headers/BFTask.h
+++ b/frameworks/Bolts.framework/Headers/BFTask.h
@@ -26,8 +26,11 @@
/*!
An exception that is thrown if there was multiple exceptions on <BFTask taskForCompletionOfAllTasks:>.
+
+ @deprecated `BFTask` exception handling is deprecated and will be removed in a future release.
*/
-extern NSString *const BFTaskMultipleExceptionsException;
+extern NSString *const BFTaskMultipleExceptionsException
+__attribute__((deprecated("`BFTask` exception handling is deprecated and will be removed in a future release.")));
/*!
An error userInfo key used if there were multiple errors on <BFTask taskForCompletionOfAllTasks:>.
@@ -38,8 +41,11 @@
/*!
An error userInfo key used if there were multiple exceptions on <BFTask taskForCompletionOfAllTasks:>.
Value type is `NSArray<NSException *> *`.
+
+ @deprecated `BFTask` exception handling is deprecated and will be removed in a future release.
*/
-extern NSString *const BFTaskMultipleExceptionsUserInfoKey;
+extern NSString *const BFTaskMultipleExceptionsUserInfoKey
+__attribute__((deprecated("`BFTask` exception handling is deprecated and will be removed in a future release.")));
@class BFExecutor;
@class BFTask;
@@ -54,7 +60,7 @@
/*!
A block that can act as a continuation for a task.
*/
-typedef __nullable id(^BFContinuationBlock)(BFTask<ResultType> *task);
+typedef __nullable id(^BFContinuationBlock)(BFTask<ResultType> *t);
/*!
Creates a task that is already completed with the given result.
@@ -71,8 +77,11 @@
/*!
Creates a task that is already completed with the given exception.
@param exception The exception for the task.
+
+ @deprecated `BFTask` exception handling is deprecated and will be removed in a future release.
*/
-+ (instancetype)taskWithException:(NSException *)exception;
++ (instancetype)taskWithException:(NSException *)exception
+__attribute__((deprecated("`BFTask` exception handling is deprecated and will be removed in a future release.")));
/*!
Creates a task that is already cancelled.
@@ -143,8 +152,11 @@
/*!
The exception of a failed task.
+
+ @deprecated `BFTask` exception handling is deprecated and will be removed in a future release.
*/
-@property (nullable, nonatomic, strong, readonly) NSException *exception;
+@property (nullable, nonatomic, strong, readonly) NSException *exception
+__attribute__((deprecated("`BFTask` exception handling is deprecated and will be removed in a future release.")));
/*!
Whether this task has been cancelled.
--
Gitblit v1.8.0