Skip to content

Conversation

@feinstein
Copy link

Clarify behavior of countdown and onTimeout function.

The current documentation is ambiguous and sounds like once we get a timeout, no further timeouts will ever be emitted, which is not the case for the actual code we have.

  • I’ve reviewed the contributor guide and applied the relevant portions to this PR.

Clarify behavior of countdown and onTimeout function.
@copybara-service
Copy link

Thank you for your contribution! This project uses Gerrit for code reviews. Your pull request has automatically been converted into a code review at:

https://dart-review.googlesource.com/c/sdk/+/465580

Please wait for a developer to review your code review at the above link; you can speed up the review if you sign into Gerrit and manually add a reviewer that has recently worked on the relevant code. See CONTRIBUTING.md to learn how to upload changes to Gerrit directly.

Additional commits pushed to this PR will update both the PR and the corresponding Gerrit CL. After the review is complete on the CL, your reviewer will merge the CL (automatically closing this PR).

@mraleph
Copy link
Member

mraleph commented Jan 14, 2026

@feinstein could you address reviewers comments on the CL in Gerrit? Otherwise please close PR if you are not planning to work on this.

@feinstein
Copy link
Author

@mraleph sure, thanks for letting me know, I don't think I got an email about it

@copybara-service
Copy link

https://dart-review.googlesource.com/c/sdk/+/465580 has been updated with the latest commits from this pull request.

1 similar comment
@copybara-service
Copy link

https://dart-review.googlesource.com/c/sdk/+/465580 has been updated with the latest commits from this pull request.

/// 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
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
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
Member

Choose a reason for hiding this comment

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

ping @lrhn

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

Successfully merging this pull request may close these issues.

3 participants