Function await_resume

Synopsis

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

const T & await_resume() const noexcept(false)

Description

No description yet.

Source

Lines 505-515 in lib/inc/drogon/utils/coroutine.h.

const T &await_resume() const noexcept(false)
{
    // await_resume() should always be called after co_await
    // (await_suspend()) is called. Therefore the value should always be set
    // (or there's an exception)
    assert(result_.has_value() == true || exception_ != nullptr);
    if (exception_)
        std::rethrow_exception(exception_);
    return result_.value();
}





Add Discussion as Guest

Log in