Function ensureFuture

Schedule the execution of a coroutine: wrap it in a future. Return a Task object.

If the argument is a Future, it is returned directly.

Prototype

auto ensureFuture(Coroutine, Args...)(
  EventLoop eventLoop,
  Coroutine coroutine,
  Args args
);

Authors

Dragos Carp

Copyright

© 2015-2016 Dragos Carp

License

Boost Software License - Version 1.0