librf
|
awaitable_t<>的公共实现部分,用于减少awaitable_t<>的重复代码。 更多...
Public 成员函数 | |
void | set_exception (std::exception_ptr e) const |
发生了异常后,设置异常。 更多... | |
template<class _Exp > | |
void | throw_exception (_Exp e) const |
在协程内部,重新抛出之前设置的异常。 | |
future_type | get_future () noexcept |
获得与之关联的future_t<>对象,作为可等待函数(awaitable function)的返回值。 | |
Public 属性 | |
counted_ptr< state_type > | _state = state_future_t::_Alloc_state<state_type>(true) |
管理的state_t<>对象。 | |
awaitable_t<>的公共实现部分,用于减少awaitable_t<>的重复代码。
_Ty | 可等待函数(awaitable function)的返回类型。 |
|
inline |
发生了异常后,设置异常。