1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-12-24 00:50:36 +00:00

impl WebsocketContext::waiting() method

This commit is contained in:
Nikolay Kim 2018-01-22 16:55:50 -08:00
parent 1957469061
commit e6ea177181

View file

@ -55,6 +55,12 @@ impl<A, S> AsyncContext<A> for WebsocketContext<A, S> where A: Actor<Context=Sel
self.inner.wait(fut) self.inner.wait(fut)
} }
#[doc(hidden)]
#[inline]
fn waiting(&self) -> bool {
self.inner.wating()
}
fn cancel_future(&mut self, handle: SpawnHandle) -> bool { fn cancel_future(&mut self, handle: SpawnHandle) -> bool {
self.inner.cancel_future(handle) self.inner.cancel_future(handle)
} }