Reactor.registerTimer

Registers a timer task.

  1. TimerHandle registerTimer(Timeout timeout, Parameters!F params)
    struct Reactor
    nothrow @safe @nogc
    registerTimer
    ()
    (,
    Parameters!F params
    )
  2. TimerHandle registerTimer(Duration timeout, Parameters!F params)
  3. TimerHandle registerTimer(Timeout timeout, T dg)
  4. TimerHandle registerTimer(Duration timeout, T dg)

Parameters

F

the callable to be invoked when the timer expires

timeout Timeout

when the timer is be called

params Parameters!F

the parameters to call F with

Return Value

A handle to the just registered timer.

Meta