#ifndef INCLUDED_LETTER_ #define INCLUDED_LETTER_ #include "../../promisebase/promisebase.h" class Letter { struct State: public PromiseBase {}; std::coroutine_handle d_handle; public: using promise_type = State; using Handle = std::coroutine_handle; explicit Letter(Handle handle); ~Letter(); Handle handle() const; }; inline Letter::Handle Letter::handle() const { return d_handle; } extern Letter g_letter; #endif