Pausing/resuming with coroutine.wrap
🌙 Lua•Updated 2 days ago•0 views
coroutine.wrap preserves state between yields - call the wrapped function normally; coroutine.yield() pauses it where it left off.
How to pause a function and resume it later
coroutine.wrap preserves state between yields - call the wrapped function normally; coroutine.yield() pauses it where it left off.