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

Feature Request: allow a retry policy for the first connection #32

Open
abolognino opened this issue Jan 8, 2020 · 1 comment
Open

Comments

@abolognino
Copy link

It seems like there is no retry on first connection, IMHO it's a common use-case, especially when multiple services are started in parallel

@Jonahss
Copy link

Jonahss commented Apr 12, 2021

There IS retry on first connection, but connect() rejects the promise it returns. If you catch the rejection, it continues to retry and later emits a connected event when it eventually connects.

I propose changing the interface so that the promise returned by connect() doesn't reject or resolve until the first connection is made or retries time out.

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

No branches or pull requests

2 participants