阅读背景:

在swift脚本中等待异步调用

来源:互联网 

Im writing a swift script to be run in terminal that dispatches to the background thread a couple of operations. Without any extra effort, after all my dispatching is done, the code reaches the end of the file and quits, killing my background operations as well. What is the best way to keep the swift script alive until my background operations are finished?Im writing a swift script to be run in terminal




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: