Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion sdk/lib/async/stream.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2001,7 +2001,9 @@ abstract mixin class Stream<T> {
/// The countdown is stopped when listening on the returned stream is
/// paused or cancelled.
/// No new countdown is started when a countdown completes
/// and the [onTimeout] function is called, even if events are emitted.
/// and the [onTimeout] function is called, even if events are emitted by the
/// [EventSink] provided to [onTimeout]. The countdown is only restarted when
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think "emitted by" would be more precise as "added to" or even "emitted by the returned stream by [onTimeout] through the [eventSink]".

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Sorry @lrhn I don't get where specifically you want me to change the wording, I already have "emitted by" in there.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ping @lrhn

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Also, please feel free to change the wording and commit and merge, if you don't want to wait for my changes. I know some people will be offended, but I won't.

/// a new event comes from this stream.
/// If the delay between events of this stream is multiple times
/// [timeLimit], at most one timeout will happen between events.
///
Expand Down