summaryrefslogtreecommitdiffstats
path: root/tokio/src/future/maybe_done.rs
diff options
context:
space:
mode:
authorCarl Lerche <me@carllerche.com>2020-01-24 20:26:55 -0800
committerGitHub <noreply@github.com>2020-01-24 20:26:55 -0800
commit5bf06f2b5a81ae7b5b8adfe4a44fab033f4156cf (patch)
tree82240f530fecfc192ec7a54ba4cbff5df9c38bd9 /tokio/src/future/maybe_done.rs
parent12be90e3fff4041ea6398fc8cd834c3ec173bce5 (diff)
future: provide try_join! macro (#2169)
Provides a `try_join!` macro that supports concurrently driving multiple `Result` futures on the same task and await the completion of all the futures as `Ok` or the **first** `Err` future.
Diffstat (limited to 'tokio/src/future/maybe_done.rs')
-rw-r--r--tokio/src/future/maybe_done.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tokio/src/future/maybe_done.rs b/tokio/src/future/maybe_done.rs
index e93af521..1e083ad7 100644
--- a/tokio/src/future/maybe_done.rs
+++ b/tokio/src/future/maybe_done.rs
@@ -30,7 +30,7 @@ impl<Fut: Future> MaybeDone<Fut> {
/// The output of this method will be [`Some`] if and only if the inner
/// future has been completed and [`take_output`](MaybeDone::take_output)
/// has not yet been called.
- pub(crate) fn output_mut(self: Pin<&mut Self>) -> Option<&mut Fut::Output> {
+ pub fn output_mut(self: Pin<&mut Self>) -> Option<&mut Fut::Output> {
unsafe {
let this = self.get_unchecked_mut();
match this {