evaera / roblox-lua-promise

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

Use coroutine.close on cancelled promise threads #76

Closed evaera closed 2 years ago

evaera commented 2 years ago

This will prevent the thread of a cancelled promise from ever resuming. We'll still keep the existing cancellation hook API around so people can cancel work without needing to yield though