32 template <
typename Container >
40 i = ( i + 1 ) % std::size( coros );
43 if ( i == 0 &&
all_of( coros ) )
48 auto const* out = cor.get_request();
53 auto resp = co_yield *out;
54 cor.store_reply( resp );
Definition: memory_resource.h:33
MIT License.
Definition: data_promise.h:27
Container::value_type round_robin_run(pmr::memory_resource &, Container coros)
Definition: round_robin_executor.h:33
std::variant< int64_t, float, bool, string_buffer > value_type
Definition: base.h:51
constexpr bool all_of(Container &&cont, PredicateCallable &&f=std::identity())
Returns true if call to predicate 'f(x)' returns true for all items in 'cont'.
Definition: algorithm.h:342