Skip to main content

within

Function within 

Source
async fn within<T>(
    limit: Option<Duration>,
    work: impl Future<Output = Result<T, String>>,
) -> Result<T, String>
Expand description

work, or its failure when it takes longer than limit.