Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

延时调用一节拿到函数发返回值取消错误 #74

Open
ripplek opened this issue May 9, 2017 · 0 comments
Open

延时调用一节拿到函数发返回值取消错误 #74

ripplek opened this issue May 9, 2017 · 0 comments

Comments

@ripplek
Copy link

ripplek commented May 9, 2017

//原文是这样的:
let task = delay(5) { print("拨打 110") }
cancel(task)

//应该是这样取消操作的吧
let cancel = dealy(5) { print("拨打110") }
cancel?(true)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant