Skip to content

Graphorin API reference v0.7.0


Graphorin API reference / @graphorin/workflow / / createTimerDriver

Function: createTimerDriver()

ts
function createTimerDriver(options): TimerDriver;

Defined in: packages/workflow/src/timer-driver.ts:112

Build a polling driver over the supplied workflows (W-032). Call start() to begin polling; the next pass is scheduled at min(pollIntervalMs, earliest nextWakeAt) so a short timer does not wait out a long poll interval.

Parameters

ParameterType
optionsCreateTimerDriverOptions

Returns

TimerDriver

Stable