executor: impl Unpark for Arc<Unpark> (#802)

This commit is contained in:
Pavel Strakhov
2018-12-28 14:40:04 -05:00
committed by Toby Lawrence
parent fdf4aba621
commit 1a5026324f
+6
View File
@@ -133,6 +133,12 @@ impl Unpark for Box<Unpark> {
}
}
impl Unpark for Arc<Unpark> {
fn unpark(&self) {
(**self).unpark()
}
}
/// Blocks the current thread using a condition variable.
///
/// Implements the [`Park`] functionality by using a condition variable. An