2021年8月17日

摘要: -- coroutine.create -- 创建协程 -- coroutine.yield -- 暂停执行 让出执行权 -- coroutine.resume -- 执行协程,继续执行协程 function foo(a) print("foo", a) return coroutine.yield 阅读全文
posted @ 2021-08-17 10:03 Ron Ngai 阅读(42) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示