coroutine.wrap vs resume error propagation
🌙 Lua•Updated 2 days ago•0 views
Yes - coroutine.wrap() propagates errors automatically, while coroutine.resume() returns ok,err and needs manual propagation if you want pcall-like behavior.
Does coroutine.wrap propagate errors differently than resume
Yes - coroutine.wrap() propagates errors automatically, while coroutine.resume() returns ok,err and needs manual propagation if you want pcall-like behavior.