鸟语天空
xLua——xLua协程
post by:追风剑情 2017-7-18 20:42

以下xLua函数来自xLua demo中的util.lua.txt文件

-- 利用xLua协程使函数func异步执行
local function coroutine_call(func)
     local co = coroutine.create(func)
     assert(coroutine.resume(co))
end


评论:
发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容