commit | author | age
|
9febd9
|
1 |
/* |
W |
2 |
* Copyright (c) 2016, Facebook, Inc. |
|
3 |
* All rights reserved. |
|
4 |
* |
|
5 |
* This source code is licensed under the BSD-style license found in the |
|
6 |
* LICENSE file in the root directory of this source tree. An additional grant |
|
7 |
* of patent rights can be found in the PATENTS file in the same directory. |
|
8 |
*/ |
|
9 |
|
|
10 |
#pragma once |
|
11 |
|
|
12 |
#import <Foundation/Foundation.h> |
|
13 |
|
|
14 |
NS_ASSUME_NONNULL_BEGIN |
|
15 |
|
|
16 |
/** |
|
17 |
Returns whether all instances of `BFTask` should automatically @try/@catch exceptions in continuation blocks. Default: `YES`. |
|
18 |
|
|
19 |
@return Boolean value indicating whether exceptions are being caught. |
|
20 |
*/ |
|
21 |
extern BOOL BFTaskCatchesExceptions(void) |
|
22 |
__attribute__((deprecated("This is temporary API and will be removed in a future release."))); |
|
23 |
|
|
24 |
/** |
|
25 |
Set whether all instances of `BFTask` should automatically @try/@catch exceptions in continuation blocks. Default: `YES`. |
|
26 |
|
|
27 |
@param catchExceptions Boolean value indicating whether exceptions shoudl be caught. |
|
28 |
*/ |
|
29 |
extern void BFTaskSetCatchesExceptions(BOOL catchExceptions) |
|
30 |
__attribute__((deprecated("This is a temporary API and will be removed in a future release."))); |
|
31 |
|
|
32 |
NS_ASSUME_NONNULL_END |