evaera / roblox-lua-promise

Promise implementation for Roblox
https://eryn.io/roblox-lua-promise/
MIT License
281 stars 78 forks source link

Promise.promisify should use pcall #12

Closed evaera closed 5 years ago

evaera commented 5 years ago

Promise.promisify should reject the promise if the function errors instead even after a yield, so it needs to be pcalled on top of using coroutine.wrap.