sqlx_core::rt

Function timeout

Source
pub async fn timeout<F: Future>(
    duration: Duration,
    f: F,
) -> Result<F::Output, TimeoutError>