From 35efd017bbbf1b10bab4a9a7b0e81cb3aee2f1a7 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Tue, 23 Jan 2018 09:42:04 -0800 Subject: [PATCH] impl waiting for HttpContext --- Cargo.toml | 2 +- src/context.rs | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 29c572d39..371aad29b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -74,7 +74,7 @@ tokio-tls = { version="0.1", optional = true } tokio-openssl = { version="0.1", optional = true } [dependencies.actix] -version = "^0.4.4" +version = "^0.4.5" [dependencies.openssl] version = "0.9" diff --git a/src/context.rs b/src/context.rs index d3fa212f5..99433d29d 100644 --- a/src/context.rs +++ b/src/context.rs @@ -51,16 +51,24 @@ impl ActorContext for HttpContext where A: Actor impl AsyncContext for HttpContext where A: Actor { + #[inline] fn spawn(&mut self, fut: F) -> SpawnHandle where F: ActorFuture + 'static { self.inner.spawn(fut) } + #[inline] fn wait(&mut self, fut: F) where F: ActorFuture + 'static { self.inner.wait(fut) } + #[doc(hidden)] + #[inline] + fn waiting(&self) -> bool { + self.inner.wating() + } + #[inline] fn cancel_future(&mut self, handle: SpawnHandle) -> bool { self.inner.cancel_future(handle) }