asio C++ library

PrevUpHomeNext

basic_yield_context::basic_yield_context

Construct a yield context to represent the specified coroutine.

basic_yield_context(
    const detail::weak_ptr< callee_type > & coro,
    caller_type & ca,
    Handler & handler);

Most applications do not need to use this constructor. Instead, the spawn() function passes a yield context as an argument to the coroutine function.


PrevUpHomeNext