1
0
Fork 0
mirror of https://gitlab.com/niansa/libcrosscoro.git synced 2025-03-06 20:53:32 +01:00
libcrosscoro/inc/coro/stop_signal.hpp
Josh Baldwin c1acf8b80d
coro::semaphore (#65)
* coro::semaphore

* coro::ring_buffer<E, N>
2021-02-23 11:05:21 -07:00

17 lines
376 B
C++

#pragma once
#include <stdexcept>
namespace coro
{
/**
* Is thrown by various 'infinite' co_await operations if the parent object has
* been requsted to stop, and wakes up all the awaiters in a stopped state. The
* awaiter's await_resume() will throw this signal to let the user know the operation
* has been cancelled.
*/
struct stop_signal
{
};
} // namespace coro