AsyncTimer.cancel

void cancel() pure @safe nothrow @nogc

Cancels a running timer.

Transitions the timer to CANCELLED state. A cancelled timer will not fire even if its delay has elapsed.