Available on crate feature
async only.Expand description
Async-flavored prelude. Available with the async feature.
Pulls in the standard prelude plus dev_async’s
AsyncCheck, AsyncProducer, and BlockingAsyncProducer
types so callers driving async producers don’t have to
import them individually.
§Example
ⓘ
use dev_tools::prelude::async_prelude::*;
// run_with_timeout, BlockingAsyncProducer, etc. all in scopeRe-exports§
pub use super::*;
Structs§
- Blocking
Async Producer - Adapter that wraps an
async fnreturning aReportand implementsdev_report::Producerby callingtokio::runtime::Handle::current().block_on(...).
Traits§
- Async
Check - A trait for any async harness that produces a verdict via a future.
- Async
Producer - An async producer that builds a
Report.
Functions§
- join_
all_ with_ timeout - Verify that all spawned tasks finish within the given timeout.
- run_
with_ timeout - Run a future with a hard timeout. Produces a
CheckResulttaggedasync.