Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: consider add Ticker #60

Open
Sherlock-Holo opened this issue May 31, 2020 · 5 comments
Open

feature request: consider add Ticker #60

Sherlock-Holo opened this issue May 31, 2020 · 5 comments

Comments

@Sherlock-Holo
Copy link

consider adding a new struct Ticker, which implement futures::Stream, can return an instant periodically by use .next().await

@antifuchs
Copy link

In the absence of this, I quickly wrote & released https://crates.io/crates/futures-ticker (crate) - happy to merge it into this crate, or keep it independent (and implement it for different Timer schemes, e.g. smol's).

@yoshuawuyts
Copy link
Contributor

Thanks for opening @Sherlock-Holo! I guess we may want to re-introduce async_std::stream::interval into this crate.

@kennetpostigo
Copy link

@yoshuawuyts Hi, i'm looking for this functionality exactly, being able to run some work at every interval

@bittrance
Copy link

Indeed, I ended up at this issue because I tried to figure out what happened to Interval from the legacy futures version of futures-timer.

@youngjoon-lee
Copy link

Hi, Is there any plan to merge #60 (comment) into this repo?

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

No branches or pull requests

6 participants