Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Clarify StreamExt::timeout() docs #800

Open
Labels
documentationImprovements or additions to documentation
@Seeker14491

Description

The description for StreamExt::timeout() states it will "await a stream or times out after a duration of time," but it's not clear whether it times out after the specified duration

  1. since calling timeout()

or

  1. since a stream item was last produced

I wanted #2 when I used this function, but then I realized it actually works like #1.

I noticed theres a pull request that adds a timeout_repeat() function that implements #2; the docs on both these functions should make it clear which of the above behaviors it implements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /