lua.wetgenes.syncs
local await=require("wetgenes.syncs").wait
Simple coop await style coroutines, probably all you need is the global await function.
This global function will wrap another function in a coroutine and resume it repeatedly along with other global coroutines until it returns.
This is really only useful if you have other coroutines or tasks doing something useful that you have a way of communicating with. IE use it with tasks as a simpler more generic way to wrap a function that may yield.