We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
let t1 = Plan.after(1.second).do { print("1 second passed") }
设定固定时间之后 并没用打印 还需要配置什么?
The text was updated successfully, but these errors were encountered:
同问
Sorry, something went wrong.
如果您未指定队列或应用程序中没有可用的 RunLoop,则不会打印它。 (参见此处)
为了让它工作,你需要指定队列:
let t1 = Plan.after(1.second).do(queue: .global()) { print("1 second passed") }
或者有一个可用的 RunLoop,如下所示:
let t1 = Plan.after(1.second).do { print("1 second passed") } CFRunLoopRun()
No branches or pull requests
let t1 = Plan.after(1.second).do { print("1 second passed") }
设定固定时间之后 并没用打印 还需要配置什么?
The text was updated successfully, but these errors were encountered: