File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed
Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 4141//! environments, they are gated under their own features, which are enabled
4242//! by default:
4343//!
44- //! | `Sleeper` | feature | Environment | Asynchronous |
45- //! |----------------------| --------------------|-------------|---------------|
46- //! | [`TokioSleeper`] | tokio-sleep | non-wasm32 | Yes |
47- //! | [`GlooTimersSleep`] | gloo-timers-sleep | wasm32 | Yes |
48- //! | [`FutureTimerSleep `] | future -timer-sleep |wasm/non-wasm| Yes |
49- //! | [`EmbassySleep`] | embassy-sleep | no_std | Yes |
50- //! | [`StdSleeper`] | std-blocking-sleep | std | No |
44+ //! | `Sleeper` | feature | Environment | Asynchronous |
45+ //! |-------------------------|- --------------------|-------------|---------------|
46+ //! | [`TokioSleeper`] | tokio-sleep | non-wasm32 | Yes |
47+ //! | [`GlooTimersSleep`] | gloo-timers-sleep | wasm32 | Yes |
48+ //! | [`FuturesTimerSleeper `] | futures -timer-sleep |wasm/non-wasm| Yes |
49+ //! | [`EmbassySleep`] | embassy-sleep | no_std | Yes |
50+ //! | [`StdSleeper`] | std-blocking-sleep | std | No |
5151//!
5252//! ## Custom Sleeper
5353//!
@@ -227,6 +227,8 @@ pub use retry_with_context::RetryableWithContext;
227227
228228mod sleep;
229229pub use sleep:: DefaultSleeper ;
230+ #[ cfg( feature = "futures-timer-sleep" ) ]
231+ pub use sleep:: FuturesTimerSleeper ;
230232#[ cfg( all( target_arch = "wasm32" , feature = "gloo-timers-sleep" ) ) ]
231233pub use sleep:: GlooTimersSleep ;
232234pub use sleep:: Sleeper ;
Original file line number Diff line number Diff line change @@ -84,10 +84,10 @@ impl Sleeper for TokioSleeper {
8484/// It is async runtime agnostic and will also work in WASM environments.
8585#[ cfg( feature = "futures-timer-sleep" ) ]
8686#[ derive( Clone , Copy , Debug , Default ) ]
87- pub struct FuturesTimerSleep ;
87+ pub struct FuturesTimerSleeper ;
8888
8989#[ cfg( feature = "futures-timer-sleep" ) ]
90- impl Sleeper for FuturesTimerSleep {
90+ impl Sleeper for FuturesTimerSleeper {
9191 type Sleep = futures_timer:: Delay ;
9292
9393 fn sleep ( & self , dur : Duration ) -> Self :: Sleep {
You can’t perform that action at this time.
0 commit comments