Skip to content

Explicit timeout for waitForMessage/waitForMessageWithId #118

Description

@Dosexe

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.

Activity

  1. kibertoad commented on Apr 2, 2024

    @kibertoad
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions