pub async fn with_timeout<T>(
operation: impl Future<Output = T>,
duration: Duration,
) -> Result<T, TimeoutError>Expand description
Execute an async operation with a timeout wrapper
pub async fn with_timeout<T>(
operation: impl Future<Output = T>,
duration: Duration,
) -> Result<T, TimeoutError>Execute an async operation with a timeout wrapper