commit | author | age
|
bad748
|
1 |
/* |
W |
2 |
* Copyright (c) 2014, 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 |
|
|
11 |
#import <Foundation/Foundation.h> |
|
12 |
|
|
13 |
NS_ASSUME_NONNULL_BEGIN |
|
14 |
|
|
15 |
/*! |
|
16 |
Represents the registration of a cancellation observer with a cancellation token. |
|
17 |
Can be used to unregister the observer at a later time. |
|
18 |
*/ |
|
19 |
@interface BFCancellationTokenRegistration : NSObject |
|
20 |
|
|
21 |
/*! |
|
22 |
Removes the cancellation observer registered with the token |
|
23 |
and releases all resources associated with this registration. |
|
24 |
*/ |
|
25 |
- (void)dispose; |
|
26 |
|
|
27 |
@end |
|
28 |
|
|
29 |
NS_ASSUME_NONNULL_END |