libcoro  1.0
Coroutine support library for C++20

◆ push() [2/2]

template<typename T , typename QueueImpl = std::queue<T>>
auto coro::queue< T, QueueImpl >::push ( T &&  x)
inline

Push item to the queue.

Parameters
xitem to push
Returns
pending notify of resolved promise (if applicable)
Note
function can cause resumption of awaiting coroutine.

Definition at line 88 of file queue.h.