Skip to content

Loading…

Stream for Timer.repeating #8477

Closed
blois opened this Issue · 6 comments

3 participants

@blois

It would be very helpful if there was a variant of Timer.repeating which just returned a Stream.

Contract could be that the Stream starts when the first listener is added, and automatically stops when all listeners are removed.

Also, a Future version of new Timer(duration) would be great, though I'm not sure if the cancel semantics could be captured with this API.

This came up in the context of bug #­6832.

@floitschG
Dart member

The future change is already uploaded (https://chromiumcodereview.appspot.com/12224081/)
Apparently I forgot to ask for a review...

We are intending to add a repeating Stream version too.


Removed Type-Defect label.
Added Type-Enhancement label.

@floitschG
Dart member

Issue #8729 has been merged into this issue.

@floitschG
Dart member

Issue #8858 has been merged into this issue.

@sethladd
Dart member

Issue #8858 has been merged into this issue.

@floitschG
Dart member

Fixed with r20021.

@floitschG
Dart member

Added Fixed label.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.