上传者: 42160424
|
上传时间: 2022-03-16 14:50:58
|
文件大小: 3KB
|
文件类型: -
lua异步
这是用于lua的具有类似功能的异步实用程序: :
###控制流
async. waterfall ({
function ( callback )
callback ( nil , " one " , " two " );
end ,
function ( callback , arg1 , arg2 )
-- arg1 now equals "one" and arg2 now equals "two"
print (arg1, arg2)
callback ( nil , " three " );
end ,
function ( callback , arg1 )
-- arg1 now equals "three"
print