| | |
| | | |
| | | /*! |
| | | 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:>. |
| | |
| | | /*! |
| | | 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; |
| | |
| | | /*! |
| | | 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. |
| | |
| | | /*! |
| | | 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. |
| | |
| | | |
| | | /*! |
| | | 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. |