美文网首页
Dispatch:AfterSync

Dispatch:AfterSync

作者: iwasee | 来源:发表于2017-08-07 12:31 被阅读14次

Swift知识搬运工

let offsetTime = DispatchTime.now() + DispatchTimeInterval.seconds(3)

DispatchQueue.main.asyncAfter(deadline: offsetTime) {

    print("test diapath_after...... after 3 secs")

}

相关文章

网友评论

      本文标题:Dispatch:AfterSync

      本文链接:https://www.haomeiwen.com/subject/emnolxtx.html