We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f698118 commit 952e95eCopy full SHA for 952e95e
compiler/base/orchestrator/src/coordinator.rs
@@ -4265,14 +4265,10 @@ mod tests {
4265
});
4266
4267
trait TimeoutExt: Future + Sized {
4268
- #[allow(clippy::type_complexity)]
4269
- fn with_timeout(
4270
- self,
4271
- ) -> futures::future::Map<
4272
- tokio::time::Timeout<Self>,
4273
- fn(Result<Self::Output, tokio::time::error::Elapsed>) -> Self::Output,
4274
- > {
4275
- tokio::time::timeout(*TIMEOUT, self).map(|v| v.expect("The operation timed out"))
+ async fn with_timeout(self) -> Self::Output {
+ tokio::time::timeout(*TIMEOUT, self)
+ .await
+ .expect("The operation timed out")
4276
}
4277
4278
0 commit comments