pub fn spawn<T>(task: T) -> Spawn<T> ⓘ
Spawn a future into a Spawn which wraps the future in a mocked executor.
Spawn
This can be used to spawn a Future or a Stream.
Future
Stream
For more information, check the module docs.