Fix async module to allow recursive "async" functions

Return `true` in async function to run again
This commit is contained in:
badgamernl
2020-03-22 22:56:39 +01:00
parent 2b0d2b874f
commit f4eb5ada5a

View File

@@ -36,7 +36,7 @@ local Async = {}
local internal_run =
Token.register(function(params)
local func = Token.get(params.token)
func(unpack(params.params))
return func(unpack(params.params))
end)
--- Register a new async function, must called when the file is loaded