libcoro  1.0
Coroutine support library for C++20

◆ operator<<()

template<typename T >
template<std::invocable Fn>
void coro::task_list< T >::operator<< ( Fn &&  fn)
inline

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 last item.

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

Definition at line 452 of file future_list.h.