Function tokio_test::task::spawn

source ·
pub fn spawn<T>(task: T) -> Spawn<T> 
Expand description

Spawn a future into a Spawn which wraps the future in a mocked executor.

This can be used to spawn a Future or a [Stream].

For more information, check the module docs.