Skip to main content

block_on

Function block_on 

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