27 template<coro_allocator Alloc = std_allocator>
32 static constexpr std::suspend_never initial_suspend() noexcept {
return {};}
33 static constexpr std::suspend_never final_suspend() noexcept {
return {};}
34 static constexpr
void return_void() {}
35 static void unhandled_exception() {std::terminate();}
40 trace::set_class(std::coroutine_handle<promise_type>::from_promise(*
this),
typeid(
basic_coroutine).name());
COROUTINE: Basic coroutine.
inherit this class to include coro_allocator into your promise_type