added async.stall to canonicalise the stalling mechanism for async users

This commit is contained in:
Max Cahill 2021-10-08 16:17:18 +11:00
parent 27b548bb25
commit 0ebe5b1e9f

View File

@ -138,4 +138,9 @@ function async:add_interval(f, delay)
end)
end
function async.stall()
return coroutine.yield("stall")
end
return async