Reactor.stop

Stop the reactor, killing all fibers.

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.

struct Reactor
@safe @nogc
void
stop
(
int reactorReturn = 0
)

Parameters

reactorReturn int

The return value to be returned from start

Meta