16 template <
typename Promise>
17 YACLIB_INLINE
auto await_suspend(yaclib_std::coroutine_handle<Promise> handle)
noexcept {
18 auto& promise = handle.promise();
19 _executor = promise._executor.Get();
21 if constexpr (
Yield) {
22 _executor->Submit(promise);
YACLIB_INLINE auto await_suspend(yaclib_std::coroutine_handle< Promise > handle) noexcept
constexpr bool await_ready() const noexcept
YACLIB_INLINE IExecutor & await_resume() const noexcept
#define YACLIB_ASSERT(cond)
YACLIB_INLINE detail::CurrentAwaiter< true > Yield() noexcept
Instead of.
YACLIB_INLINE detail::CurrentAwaiter< false > CurrentExecutor() noexcept
Get current executor.
Contract< V, E > MakeContract()
Creates related future and promise.