Stream for Timer.repeating #8477

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

Comments

Projects
None yet
4 participants

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.

Member

floitschG commented Feb 11, 2013

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.

Member

floitschG commented Mar 3, 2013

Issue #8729 has been merged into this issue.

Member

floitschG commented Mar 3, 2013

Issue #8858 has been merged into this issue.

Member

sethladd commented Mar 4, 2013

Issue #8858 has been merged into this issue.

Member

floitschG commented Mar 14, 2013

Fixed with r20021.

Member

floitschG commented Mar 14, 2013

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