Skip to content

Commit 0bbf0b7

Browse files
committed
eliminate Reactor::wait_for
everyone should use AsyncPollable::wait_for.
1 parent 0eded23 commit 0bbf0b7

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/runtime/reactor.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,6 @@ impl Reactor {
207207
}
208208
ready
209209
}
210-
211-
/// Wait for the pollable to resolve.
212-
pub async fn wait_for(&self, pollable: Pollable) {
213-
let p = self.schedule(pollable);
214-
p.wait_for().await
215-
}
216210
}
217211

218212
#[cfg(test)]

0 commit comments

Comments
 (0)