Function Reactor.boostFiberPriority

Give a fiber temporary priority in execution.

void boostFiberPriority (
  FiberHandle fib,
  bool priority = true
) nothrow @nogc @safe;

void boostFiberPriority (
  bool priority = true
) nothrow @nogc @safe;

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.

This attribute is a one-off. As soon as the fiber gets scheduled again, it will revert to being a normal fiber.

Parameters

NameDescription
fib FiberHandle of fiber to boost. If missing, boost the current fiber
priority Whether to prioritize (default) of de-prioritize the fiber