Skip to main content

spawn_blocking_encryption

Function spawn_blocking_encryption 

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

Run a blocking operation on a thread pool and return a future