Reactor.boostFiberPriority

Give a fiber temporary priority in execution.

Setting fiber priority means that the next time this fiber is scheduled, it will be scheduled ahead of other fibers already scheduled to be run.

Returns a RAII object that sets the priority back when destroyed. Typically, that happens at the end of the scope.

Can be used as:

with(boostFiberPriority()) {
   // High priority stuff goes here
}
struct Reactor
nothrow @safe @nogc
boostFiberPriority
()

Meta