Struct final_awaiter

Synopsis

#include <lib/inc/drogon/utils/coroutine.h>

struct final_awaiter

Description

No description yet.

Methods

await_ready
await_resume
await_suspend

Source

Lines 83-97 in lib/inc/drogon/utils/coroutine.h.

struct final_awaiter
{
    bool await_ready() noexcept
    {
        return false;
    }
    template <typename T>
    auto await_suspend(std::coroutine_handle<T> handle) noexcept
    {
        return handle.promise().continuation_;
    }
    void await_resume() noexcept
    {
    }
};





Add Discussion as Guest

Log in