Skip to main content

blocking

Function blocking 

Source
pub async fn blocking<T: Send + 'static>(
    task: impl FnOnce() -> Result<T, String> + Send + 'static,
) -> Result<T, String>
Expand description

Runs a blocking client call off the async runtime.