Struct promise_type

Synopsis

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

struct promise_type final

Description

No description yet.

Methods

final_suspend
get_return_object
initial_suspend
result
return_void
unhandled_exception

Source

Lines 380-409 in lib/inc/drogon/utils/coroutine.h.

struct promise_type final
{
    auto initial_suspend() noexcept
    {
        return std::suspend_never{};
    }
    auto final_suspend() noexcept
    {
        return std::suspend_never{};
    }
    void return_void() noexcept
    {
    }
    void unhandled_exception()
    {
        std::terminate();
    }
    promise_type *get_return_object() noexcept
    {
        return this;
    }
    void result()
    {
    }
};





Add Discussion as Guest

Log in