15 template <
typename Promise>
16 YACLIB_INLINE
void await_suspend(yaclib_std::coroutine_handle<Promise> handle)
const noexcept {
17 auto& promise = handle.promise();
19 promise._executor->Submit(promise);
constexpr void await_resume() const noexcept
constexpr bool await_ready() const noexcept
YACLIB_INLINE void await_suspend(yaclib_std::coroutine_handle< Promise > handle) const noexcept
#define YACLIB_ASSERT(cond)
Contract< V, E > MakeContract()
Creates related future and promise.
constexpr detail::Yield kYield
Reschedule current job to it executor Useful for timeout checks, or if you job very big and doing onl...