-
Notifications
You must be signed in to change notification settings - Fork 523
Open
Description
如题,协程的取消Cancle需要怎么使用,目前调用没有效果?
/**
Cancel the job.
@discussion If you want a `COPromise` be cancellable, you must make the job cancel in `onCancel:`.
*/
- (void)cancel;
/**
Set the onCancelBlock.
@param onCancelBlock will execute on the promise cancelled.
*/
- (void)onCancel:(COPromiseOnCancelBlock _Nullable )onCancelBlock;目前,如下两种方式,均没有效果: cancle 并没被调用,没有日志输出。
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
