|
MT Showcase SDK
|
Interface for value streams that produces values of type T. More...
#include <ValueStream.hpp>
Public Member Functions | |
| int | forEachSync (const std::function< void(const T &)> &f, int N, const std::function< bool(const T &)> &endCond=nullptr) |
| Executes f for each next N values in the Stream as long as values are being generated. More... | |
Interface for value streams that produces values of type T.
| int Showcase::ValueStream< T >::forEachSync | ( | const std::function< void(const T &)> & | f, |
| int | N, | ||
| const std::function< bool(const T &)> & | endCond = nullptr |
||
| ) |
Executes f for each next N values in the Stream as long as values are being generated.
Next function is not executed until the execution of the previous one is completed. Will block until N values are executed or for the first value which fulfills end condition.