aboutsummaryrefslogtreecommitdiff
path: root/src/park/either.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/park/either.rs')
-rw-r--r--src/park/either.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/park/either.rs b/src/park/either.rs
index 67f1e17..ee02ec1 100644
--- a/src/park/either.rs
+++ b/src/park/either.rs
@@ -1,3 +1,5 @@
+#![cfg_attr(not(feature = "full"), allow(dead_code))]
+
use crate::park::{Park, Unpark};
use std::fmt;
@@ -36,6 +38,13 @@ where
Either::B(b) => b.park_timeout(duration).map_err(Either::B),
}
}
+
+ fn shutdown(&mut self) {
+ match self {
+ Either::A(a) => a.shutdown(),
+ Either::B(b) => b.shutdown(),
+ }
+ }
}
impl<A, B> Unpark for Either<A, B>