libcoro  1.0
Coroutine support library for C++20

◆ operator()()

template<typename Collectible , typename Result , coro_allocator Alloc = std_allocator>
template<typename ... Args>
future<bool> coro::collector< Collectible, Result, Alloc >::operator() ( Args &&...  args)
inline

call collected and push next collectible item

Parameters
argsarguments to construct the item or function which is called without arguments and returns the collectible item
Returns
future, which is resolved by
Return values
trueresult is available, no more items needed
falseresult is not yet available, add more items

Definition at line 141 of file collector.h.