38 [[nodiscard]] uv_loop_t *
uvloop()
const;
42 static void enqueue(std::coroutine_handle<> handle);
59 std::unique_ptr<uv_loop_t>
loop_;
void runOne()
Definition loop.cc:52
static Scheduler & currentScheduler()
Definition loop.cc:66
Loop & operator=(const Loop &)=delete
uv_loop_t * uvloop() const
Get a non-owned pointer to the loop.
Definition loop.cc:62
std::unique_ptr< uv_loop_t > loop_
Definition loop.h:59
~Loop()
Definition loop.cc:32
Loop(const Loop &)=delete
std::unique_ptr< Scheduler > scheduler_
Definition loop.h:60
Loop & operator=(Loop &&)=delete
static Loop * defaultLoop
Definition loop.h:47
Loop(Scheduler::RunMode mode=Scheduler::RunMode::Deferred)
Definition loop.cc:17
friend void runLoop(Loop &)
Definition run.cc:32
static void enqueue(std::coroutine_handle<> handle)
Definition loop.cc:73
void run()
Definition loop.cc:54
Definition scheduler.h:43
RunMode
Definition scheduler.h:45
Definition async_work.cc:17