Function actix::fut::wrap_future
source · pub fn wrap_future<F, A>(f: F) -> FutureWrap<F, A>where
F: Future,
Expand description
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