uv-keyring 0.0.36

This is an internal component crate of uv
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::error::{Error as ErrorCode, Result};

pub(crate) async fn spawn_blocking<F, T>(f: F) -> Result<T>
where
    F: FnOnce() -> Result<T> + Send + 'static,
    T: Send + 'static,
{
    tokio::task::spawn_blocking(f)
        .await
        .map_err(|e| ErrorCode::PlatformFailure(Box::new(e)))?
}