OSSCancellationToken Class Reference
Inherits from | NSObject |
Declared in | OSSCancellationToken.h OSSCancellationToken.m |
Overview
The consumer view of a CancellationToken. Propagates notification that operations should be canceled. A OSSCancellationToken has methods to inspect whether the token has been cancelled.
Instance Methods
registerCancellationObserverWithBlock:
Register a block to be notified when the token is cancelled. If the token is already cancelled the delegate will be notified immediately.
- (OSSCancellationTokenRegistration *)registerCancellationObserverWithBlock:(OSSCancellationBlock)block
Discussion
Register a block to be notified when the token is cancelled. If the token is already cancelled the delegate will be notified immediately.
Declared In
OSSCancellationToken.h