Skip to content

Documentation / @andrew_l/app / IntervalStrategy

Class: IntervalStrategy ​

Triggers a worker task on a fixed interval. Skips the tick with a warning if the worker is not idle.

Implements ​

Constructors ​

Constructor ​

new IntervalStrategy(options): IntervalStrategy

Parameters ​

options ​

Options

Returns ​

IntervalStrategy

Methods ​

createTask() ​

createTask(): Context

Returns ​

Context

Implementation of ​

WorkerStrategy.createTask


doSetup() ​

doSetup(__namedParameters): void

Parameters ​

__namedParameters ​
worker ​

WorkerInstance

Returns ​

void

Implementation of ​

WorkerStrategy.doSetup


doShutdown() ​

doShutdown(): void

Returns ​

void

Implementation of ​

WorkerStrategy.doShutdown


startSignal() ​

startSignal(): void

Returns ​

void

Implementation of ​

WorkerStrategy.startSignal


stopSignal() ​

stopSignal(done): void

Parameters ​

done ​

() => void

Returns ​

void

Implementation of ​

WorkerStrategy.stopSignal