pub(crate) async fn with_api_endpoint_timeout<T>( handler: impl Future<Output = Result<T, ApiError>>, ) -> Result<T, ApiError>
Apply the same endpoint deadline and timeout error across API transports.