Heartbeat

constructor(handler: Handler, ticker: Heartbeat.Ticker<Data>, period: Duration)

Parameters

handler

target handler on which this should be called

ticker

callback that will get run

period

time between individual calls the initial call has 5 seconds offset


constructor(handler: Handler, ticker: Heartbeat.Ticker<Data>, period: Duration, offset: Duration)

Parameters

handler

target handler on which this should be called

ticker

callback that will get run

period

time between individual calls

offset

delay before the heartbeat runnable gets called for the first time