Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Added retry to PromiseUtils #229

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Boegie19
Copy link
Contributor

Added retry to PromiseUtils

If you want a promise to be tried multiple times before it fails.

@Quenty
Copy link
Owner

Quenty commented Nov 22, 2021

Shouldn’t this backoff or have some jitter too?

@Boegie19
Copy link
Contributor Author

Boegie19 commented Nov 23, 2021

For my personal use case no. for other use-cases probably.

The only way I can think of adding it is task.Wait(waittimeBetwenRetries) with waittimeBetwenRetries being a parameter in the retry function. I will make a commit with that added.

But there is probably a better way to do this.

Copy link
Owner

@Quenty Quenty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There’s a space missing

src/promise/src/Shared/PromiseUtils.lua Outdated Show resolved Hide resolved
src/promise/src/Shared/PromiseUtils.lua Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants