Skip to main content

Module async_prelude

Module async_prelude 

Source
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 scope

Re-exports§

pub use super::*;

Structs§

BlockingAsyncProducer
Adapter that wraps an async fn returning a Report and implements dev_report::Producer by calling tokio::runtime::Handle::current().block_on(...).

Traits§

AsyncCheck
A trait for any async harness that produces a verdict via a future.
AsyncProducer
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 CheckResult tagged async.