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

Explicit timeout for waitForMessage/waitForMessageWithId #118

Open
Dosexe opened this issue Apr 2, 2024 · 1 comment
Open

Explicit timeout for waitForMessage/waitForMessageWithId #118

Dosexe opened this issue Apr 2, 2024 · 1 comment

Comments

@Dosexe
Copy link
Contributor

Dosexe commented Apr 2, 2024

Expilcit timeout should be set for waitForMessage and waitForMessageWithId functions, otherwise it will wait indefinitely.
Propesd value is 1 second.
When the timeout is set and waiting fails due to timeout it will be good to show what actually failed and what message was awaited for.

@kibertoad
Copy link
Owner

Possible implementation: use https://github.com/digitalloggers/race-as-promised in order to timeout the awaiting with an explicit error.

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