mirror of
https://gitlab.com/niansa/libcrosscoro.git
synced 2025-03-06 20:53:32 +01:00
17 lines
376 B
C++
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
|