pub fn block_on<T>(
listeners: &AsyncListeners,
task: impl Future<Output = T>,
) -> T
Expand description
Spawns a task and blocks until the future resolves, returning its result.
pub fn block_on<T>(
listeners: &AsyncListeners,
task: impl Future<Output = T>,
) -> T
Spawns a task and blocks until the future resolves, returning its result.