Function Reactor.stop

Stop the reactor, killing all fibers.

void stop (
  int reactorReturn = 0
) @nogc @safe;

This will kill all running fibers and trigger a return from the original call to Reactor.start.

Typically, this function call never returns (throws ReactorExit). However, if stop is called while already in the process of stopping, it will just return. It is, therefor, not wise to rely on that fact.

Parameters

NameDescription
reactorReturn The return value to be returned from start