Commit 214f2356 authored by Xavier Thompson's avatar Xavier Thompson

Rename Scheduler::insert into Scheduler::schedule

parent 4954832c
......@@ -63,7 +63,7 @@ namespace typon
void call() &&
{
Scheduler::insert(_coroutine);
Scheduler::schedule(_coroutine);
_coroutine.promise()._count.wait(0);
_coroutine.promise().get();
}
......
......@@ -37,7 +37,7 @@ namespace typon
return scheduler;
}
static void insert(std::coroutine_handle<> task) noexcept
static void schedule(std::coroutine_handle<> task) noexcept
{
Scheduler & scheduler = get();
uint id = fdt::random::random() % scheduler._concurrency;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment