1. Only showing results from lib.rs

    Clear filter to show all search results

  2. 7 days agoTimeout. Timeout is a future combinator that completes when the inner future completes or when the timeout expires. Interval. Interval ticks at a sequence of instants with a certain duration between each instant. Installation. Add the dependency to your Cargo.toml via: cargo add fastimer Documentation. Read the online documents at https://docs ...
  3. 7 days agoTimeout. Timeout is a future combinator that completes when the inner future completes or when the timeout expires. Interval. Interval ticks at a sequence of instants with a certain duration between each instant. Installation. Add the dependency to your Cargo.toml via: cargo add fastimer Documentation. Read the online documents at https://docs ...
  4. Aug 11, 2023use gloo_timers::callback::Timeout; let timeout = Timeout::new(1_000, move || {// Do something after the one second timeout is up!}); // Since we don't plan on cancelling the timeout, call `forget`. timeout.forget(); Timeouts as Futures. With the futures feature enabled, a future module containing futures-based timers is exposed.
  5. Nov 1, 202480,446 downloads per month Used in 29 crates (7 directly). Apache-2.0. 23KB 398 lines. A drop-in replacement of tokio::time::timeout which is much more efficient.. Similar to tokio::time::timeout but more efficient on busy concurrent IOs where timeouts are created and canceled very frequently.. This crate provides the following optimizations. The timeouts lazily initializes their timer when ...
  6. Jan 1, 2025In this case test pass because the delay is just 10 milliseconds and timeout is 80 milliseconds. You can use timeout attribute like any other attribute in your tests, and you can override a group timeout with a case specific one. In the follow example we have 3 tests where first and third use 100 milliseconds but the second one use 10 milliseconds.
  7. Jan 2, 202555,747 downloads per month Used in 118 crates (98 directly). MIT/Apache. 145KB 2K SLoC embassy-time. Timekeeping, delays and timeouts. Timekeeping is done with elapsed time since system boot. Time is represented in ticks, where the tick rate is defined either by the driver (in the case of a fixed-rate tick) or chosen by the user with a tick rate feature. The chosen tick rate applies to ...
  8. Dec 2, 2024Use the timeout to check the task time. name: a timeout example id: timeout steps:-name: prepare id: prepare acts:-act: irq key: init-name: step1 id: step1 acts:-act: irq key: act1 # check timeout rules timeout: # 1d means one day # triggers act2 when timeout-on: 1d then:-act: irq id: act2 # 2h means two hours # triggers act3 when timeout-on ...
  9. Dec 11, 2024For example, to enable only the retry and timeout middleware, write: tower = { version = "0.5.1", features = ["retry", "timeout"] } See here for a complete list of all middleware provided by Tower. Supported Rust Versions. Tower will keep a rolling MSRV (minimum supported Rust version) policy of at least 6 months. When increasing the MSRV, the ...
  10. See also: gloo-timers, futures-timer, wasm-bindgen-futures, pinky-swear, cancel-safe-futures, pasts, async-ffi, spin_on, inspect-timeout, handle, must_future Lib.rs is an unofficial list of Rust/Cargo crates, created by kornelski.It contains data from multiple sources, including heuristics, and manually curated data.Content of this page is not necessarily endorsed by the authors of the crate.
  11. Can’t find what you’re looking for?

    Help us improve DuckDuckGo searches with your feedback

Custom date rangeX