Skip to content

asio::basic_yield_context

Context object the represents the currently executing coroutine.

詳細情報

メンバー

coro_

detail::weak_ptr<callee_type> asio::basic_yield_context< Handler >::coro_

ca_

caller_type& asio::basic_yield_context< Handler >::ca_

handler_

Handler asio::basic_yield_context< Handler >::handler_

ec_

asio::error_code* asio::basic_yield_context< Handler >::ec_

basic_yield_context()

Construct a yield context to represent the specified coroutine.

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

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

引数

  • constdetail::weak_ptr< > & coro
  • caller_type& ca
  • Handler & handler

basic_yield_context()

Construct a yield context from another yield context type.

Requires that OtherHandler be convertible to Handler.

asio::basic_yield_context< Handler >::basic_yield_context(const basic_yield_context< OtherHandler > &other)

引数

  • const< OtherHandler > & other

operator

Return a yield context that sets the specified .

basic_yield_context asio::basic_yield_context< Handler >::operator[](asio::error_code &ec) const

引数

  • asio::error_code& ec

戻り値

basic_yield_context