Reactor.registerTimer - multiple declarations

Function Reactor.registerTimer

Registers a timer task.

Reactor.TimerHandle registerTimer(alias F) (
  Timeout timeout,
  Parameters!F params
) nothrow @nogc @safe;

Reactor.TimerHandle registerTimer(alias F) (
  Duration timeout,
  Parameters!F params
) nothrow @nogc @safe;

Parameters

NameDescription
F the callable to be invoked when the timer expires
timeout when the timer is be called
params the parameters to call F with

Returns

A handle to the just registered timer.

Function Reactor.registerTimer

Register a timer callback

Reactor.TimerHandle registerTimer(T) (
  Timeout timeout,
  T dg
) nothrow @nogc @safe;

Reactor.TimerHandle registerTimer(T) (
  Duration timeout,
  T dg
) nothrow @nogc @safe;

Same as registerTimer!F, except with the callback as an argument. Callback cannot accept parameters.