Stream for Timer.repeating #8477

Closed
blois opened this Issue Feb 11, 2013 · 6 comments

Projects

None yet

4 participants

@blois
blois commented Feb 11, 2013

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

Issue #8729 has been merged into this issue.

@floitschG
Member

Issue #8858 has been merged into this issue.

@sethladd
Member
sethladd commented Mar 4, 2013

Issue #8858 has been merged into this issue.

@floitschG
Member

Fixed with r20021.

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