asio C++ library

PrevUpHomeNext
basic_yield_context::basic_yield_context (1 of 2 overloads)

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