Skip to main content

blocking_bound

Function blocking_bound 

Source
pub async fn blocking_bound<T, F>(f: F) -> Result<T, String>
where F: FnOnce() -> T + Send + 'static, T: Send + 'static,
Expand description

Run blocking f on the blocking pool as the CURRENT account’s work: a pool thread carries no task binding of its own.