Skip to main content

blocking

Function blocking 

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

Runs read on the blocking pool; a refusal is a 404 (the entry isn’t one this agent may use, or isn’t there), a 400 or a 500.