feat: add Sleeper based on futures-timer#154
Conversation
Xuanwo
left a comment
There was a problem hiding this comment.
Thank you for your PR. But I prefer to keep gloo-timers feature as is and only add a new feature for futures-timer.
|
Thanks for the comments. I will improve it. |
|
@Xuanwo I pushed some changes. Let me know if a type alias for |
Thank you for your efforts; I prefer to leave them unchanged. |
80e4f72 to
d350da8
Compare
gloo-timers with futures-timerfutures-timer
Added the requested changes, pls check it out. |
Xuanwo
left a comment
There was a problem hiding this comment.
Thank you @NumberFour8 for this!
What
This PR adds the new
FuturesTimerSleepimplementation of aSleeperwhich is based on the https://docs.rs/futures-timer/latest/futures_timer/ crate.This timer is runtime agnostic and also works in WASM environments and is gated via
futures-timer-sleepfeature (enabled per default).Closes #153