Skip to main content

until

Function until 

Source
pub(crate) async fn until<F, A, E>(
    t: Duration,
    fut: F,
) -> Result<A, NetworkError>
where F: Future<Output = Result<A, E>>, E: Into<NetworkError>,
Expand description

A variant of timeout that merges the timeout error into network error.