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
2022-03-16 14:50:58
3KB
Lua
1