mirror of
https://github.com/rayaman/multi.git
synced 2026-09-05 07:27:35 -04:00
Added test for defer
This commit is contained in:
@@ -152,6 +152,10 @@ function INIT()
|
||||
end
|
||||
end
|
||||
|
||||
function THREAD.defer(func)
|
||||
multi.OnExit(func)
|
||||
end
|
||||
|
||||
return GLOBAL, THREAD
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user