Function sleepCoro

Summary

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

(1) internal::TimerAwaiter sleepCoro(trantor::EventLoop *loop, const std::chrono::duration< long double > &delay) noexcept

(2) internal::TimerAwaiter sleepCoro(trantor::EventLoop *loop, double delay) noexcept

Function overload

Synopsis

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

internal::TimerAwaiter sleepCoro(trantor::EventLoop *loop, const std::chrono::duration< long double > &delay) noexcept

Description

No description yet.

Source

Lines 598-604 in lib/inc/drogon/utils/coroutine.h.

inline internal::TimerAwaiter sleepCoro(
    trantor::EventLoop *loop,
    const std::chrono::duration<long double> &delay) noexcept
{
    assert(loop);
    return internal::TimerAwaiter(loop, delay);
}

Synopsis

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

internal::TimerAwaiter sleepCoro(trantor::EventLoop *loop, double delay) noexcept

Description

No description yet.

Source

Lines 606-611 in lib/inc/drogon/utils/coroutine.h.

inline internal::TimerAwaiter sleepCoro(trantor::EventLoop *loop,
                                        double delay) noexcept
{
    assert(loop);
    return internal::TimerAwaiter(loop, delay);
}





Add Discussion as Guest

Log in