cortex 0.0.1
Loading...
Searching...
No Matches
coroutine_body.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <function2/function2.hpp>
4
6
12namespace cortex {
13
21using CoroutineBody = fu2::unique_function<void(CoroutineSuspendContext&)>;
22
23} // namespace cortex
Provides a mechanism for a coroutine to suspend itself.
Definition coroutine_suspend_context.hpp:17
Context for suspending coroutine execution.
Definition base_coroutine.hpp:14
fu2::unique_function< void(CoroutineSuspendContext &)> CoroutineBody
The signature for a coroutine's entry point.
Definition coroutine_body.hpp:21