Function sleepCoro

Summary

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

(1) internal::TimerAwaiter sleepCoro(trantor::EventLoop *loop, const std::chrono::duration< 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< double > &delay) noexcept

Description

No description yet.

Source

Lines 672-678 in lib/inc/drogon/utils/coroutine.h.

inline internal::TimerAwaiter sleepCoro(
    trantor::EventLoop *loop,
    const std::chrono::duration<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 680-685 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