Skip to main content

with_api_endpoint_timeout

Function with_api_endpoint_timeout 

Source
pub(crate) async fn with_api_endpoint_timeout<T>(
    handler: impl Future<Output = Result<T, ApiError>>,
) -> Result<T, ApiError>
Expand description

Apply the same endpoint deadline and timeout error across API transports.