D++ (DPP)
C++ Discord API Bot Library
|
Extremely light coroutine object designed to send off a coroutine to execute on its own. Can be used in conjunction with coroutine events via event routers, or on its own. More...
Extremely light coroutine object designed to send off a coroutine to execute on its own. Can be used in conjunction with coroutine events via event routers, or on its own.
This object stores no state and is the recommended way to use coroutines if you do not need to co_await the result.
co_await
will error if any parameters are passed by reference. If you must pass a reference, pass it as a pointer or with std::ref, but you must fully understand the reason behind this warning, and what to avoid. If you prefer a safer type, use coroutine
for synchronous execution, or task
for parallel tasks, and co_await them.