C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::async::source_runner< Factory > Class Template Reference

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.
 

Detailed Description

template<class Factory>
class caf::async::source_runner< Factory >

Helper class to run an asynchronous source.

Member Function Documentation

◆ run()

template<class Factory >
template<class F >
auto caf::async::source_runner< Factory >::run ( F && init) &&

Runs the source in a background thread and returns a publisher or stream.

Parameters
initA function object that takes the source as argument and turns it into a publisher or stream.

The documentation for this class was generated from the following file: