EventLoop.isRunning

bool isRunning() @property const pure @safe nothrow @nogc

Report whether run or runToCompletion is currently executing.

Returns

true while the loop is inside a run method.