From 1a5026324fd41abe4cf46d10b1b860546080c254 Mon Sep 17 00:00:00 2001 From: Pavel Strakhov Date: Fri, 28 Dec 2018 22:40:04 +0300 Subject: [PATCH] executor: impl Unpark for Arc (#802) --- tokio-executor/src/park.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tokio-executor/src/park.rs b/tokio-executor/src/park.rs index 4f278fdd3..3bbebab80 100644 --- a/tokio-executor/src/park.rs +++ b/tokio-executor/src/park.rs @@ -133,6 +133,12 @@ impl Unpark for Box { } } +impl Unpark for Arc { + fn unpark(&self) { + (**self).unpark() + } +} + /// Blocks the current thread using a condition variable. /// /// Implements the [`Park`] functionality by using a condition variable. An