IntervalGate

IntervalGate

Interval Gate for Input providing items at regular intervals

Constructor

new IntervalGate(seconds)

Source:
Parameters:
Name Type Description
seconds number

receiving to be resolved every specified seconds

Methods

clear()

Stop

Source:

receive() → {Promise}

Item is { time: <Date> }.

Source:
Returns:
Type:
Promise
  • A promise that resolves an item when the item is written