§tiro::async_token
A token that can be used to resume a yielding coroutine.
#include "tiropp/functions.hpp"
§Public Functions
Name | |
---|---|
async_token(tiro_vm_t vm, tiro_async_token_t token) | |
async_token(async_token && ) =default | |
async_token & | operator=(async_token && ) =default |
void | return_value(const handle & value) Resumes a yielding coroutine that was paused by calling yield from an async function call frame. |
void | panic_msg(std::string_view message) Resumes a yielding coroutine that was paused by calling yield from an async function call frame. |
tiro_vm_t | raw_vm() const |
tiro_async_token_t | raw_token() |
§Public Functions Documentation
§function async_token
inline async_token(tiro_vm_t vm,tiro_async_token_t token)
§function async_token
async_token(async_token &&) =default
§function operator=
async_token & operator=(async_token &&) =default
§function return_value
inline void return_value(const handle & value)
Resumes a yielding coroutine that was paused by calling yield from an async function call frame.
The associated async function call will return with the given value.
§function panic_msg
inline void panic_msg(std::string_view message)
Resumes a yielding coroutine that was paused by calling yield from an async function call frame.
The associated async function call will panic with the given error message.
§function raw_vm
inline tiro_vm_t raw_vm() const
§function raw_token
inline tiro_async_token_t raw_token()
Updated on 2022-02-27 at 21:17:13 +0100