Skip to content

COPromise 的 cancle 调用没有效果。 #110

@szmichaelyb

Description

@szmichaelyb

如题,协程的取消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 并没被调用,没有日志输出。

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions