[−][src]Function ndless_async::task::block_on
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.
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.