libcoro  1.0
Coroutine support library for C++20

◆ operator>>

template<typename T >
template<std::invocable Fn>
void operator>> ( Fn &&  fn,
task_list< T > &  lst 
)
friend

Redirect return value to the task list.

Parameters
fna function which returns value to be pushed into the list. The return value is pushed as first iten.

Its is expected that returned value is not movable nor copyable. It is constructed directly in the list

Definition at line 467 of file future_list.h.