[][src]Function actix_web::actix::fut::wrap_future

pub fn wrap_future<F, A>(f: F) -> FutureWrap<F, A> where
    F: Future

Converts normal future into ActorFuture, allowing its processing to use the actor's state.

See the documentation for ActorFuture for a practical example involving both wrap_future and ActorFuture