whenWatchdogExpires

Create a new watchdog that can be updated via index through getWatchdogs. If this watchdog dies, the action will be executed.

Return

this

Parameters

timeout

the timeout before this watchdog dies

action

the action to take on timeout