Stream for Timer.repeating #8477
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
type-enhancement
A request for a change that isn't a bug
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.
The text was updated successfully, but these errors were encountered: