evaera / roblox-lua-promise

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

Fix callback errors in `retryWithDelay` and `retry` #100

Open Cody-Nelson opened 2 months ago

Cody-Nelson commented 2 months ago

Due to how it was structured with resolve, if the provided callback errored in retryWithDelay/retry it would not be inside of a promise, and therefor would not retry.