libcoro
1.0
Coroutine support library for C++20
|
◆ close()
template<typename T , typename QueueImpl = std::queue<T>>
close the queue closed queue means, that any awaiting coroutine immediately receives BrokenPromise. Any attempt to pop() also recives BrokenPromise when the queue is empty. In thi state, it is still possible to push and pop items but without blocking.
|