mirror of
https://github.com/actix/actix-web.git
synced 2024-12-23 00:26:34 +00:00
impl waiting for HttpContext
This commit is contained in:
parent
fb76c490c6
commit
35efd017bb
2 changed files with 9 additions and 1 deletions
|
@ -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"
|
||||
|
|
|
@ -51,16 +51,24 @@ impl<A, S> ActorContext for HttpContext<A, S> where A: Actor<Context=Self>
|
|||
|
||||
impl<A, S> AsyncContext<A> for HttpContext<A, S> where A: Actor<Context=Self>
|
||||
{
|
||||
#[inline]
|
||||
fn spawn<F>(&mut self, fut: F) -> SpawnHandle
|
||||
where F: ActorFuture<Item=(), Error=(), Actor=A> + 'static
|
||||
{
|
||||
self.inner.spawn(fut)
|
||||
}
|
||||
#[inline]
|
||||
fn wait<F>(&mut self, fut: F)
|
||||
where F: ActorFuture<Item=(), Error=(), Actor=A> + '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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue