C++ Actor Framework 1.0.0
|
Helper class to run an asynchronous source. More...
#include <file.hpp>
Public Member Functions | |
source_runner (actor_system *sys, Factory gen) | |
template<class F > | |
auto | run (F &&init) && |
Runs the source in a background thread and returns a publisher or stream. | |
auto | run () && |
Runs the source in a background thread and returns a publisher or stream. | |
Helper class to run an asynchronous source.
auto caf::async::source_runner< Factory >::run | ( | F && | init | ) | && |
Runs the source in a background thread and returns a publisher or stream.
init | A function object that takes the source as argument and turns it into a publisher or stream. |