Variadic Futures
|
Represents a stream of values that will be eventually available. More...
#include <stream_future.h>
Public Types | |
using | storage_type = detail::Stream_storage< Alloc, Ts... > |
The underlying storage type. | |
using | fullfill_type = typename storage_type::fullfill_type |
Public Member Functions | |
Basic_stream_future ()=default | |
Default construction. More... | |
Basic_stream_future (Basic_stream_future &&)=default | |
Move construction. More... | |
Basic_stream_future & | operator= (Basic_stream_future &&)=default |
Move assignment. More... | |
template<typename CbT > | |
Basic_future< Alloc, void > | for_each (CbT &&cb) |
Invokes a callback on each value in the stream wherever they are produced. More... | |
template<typename QueueT , typename CbT > | |
Basic_future< Alloc, void > | for_each (QueueT &queue, CbT &&cb) |
Posts the execution of a callback to a queue when values are produced. More... | |
Friends | |
template<typename SubAlloc , typename... Us> | |
class | Basic_stream_promise |
Represents a stream of values that will be eventually available.
Alloc | The rebindable allocator to use. |
Ts | The types making up the stream fields. |
|
default |
Default construction.
|
default |
Move construction.
Basic_future<Alloc, void> aom::Basic_stream_future< Alloc, Ts >::for_each | ( | CbT && | cb | ) |
Invokes a callback on each value in the stream wherever they are produced.
CbT |
cb | The callback to invoke on each value. |
Basic_future<Alloc, void> aom::Basic_stream_future< Alloc, Ts >::for_each | ( | QueueT & | queue, |
CbT && | cb | ||
) |
Posts the execution of a callback to a queue when values are produced.
QueueT | |
CbT |
queue | cb will be posted to that queue |
cb | the callback to invoke. |
|
default |
Move assignment.