MedM DeviceKit
DeviceAddingCancellationToken.h
Go to the documentation of this file.
1 //
2 // DeviceAddingCancellationToken.h
3 // MedMDeviceKit
4 //
5 // Copyright (C) 2017 MedM. All rights reserved.
6 //
7 
8 #ifndef DeviceAddingCancellationToken_h
9 #define DeviceAddingCancellationToken_h
10 
14 @protocol DeviceAddingCancellationToken<NSObject>
15 
17 - (void)cancel;
18 
20 - (BOOL)isCancelled;
21 
23 - (BOOL)isDone;
24 @end
25 
26 #endif /* DeviceAddingCancellationToken_h */
void cancel()
Cancel the operation.
BOOL isDone()
Check if the operation is finished.
Cancellation token – could be used to cancel asynchronous add operation.
Definition: DeviceAddingCancellationToken.h:14
BOOL isCancelled()
Check if the operation is already cancelled.