Skip to content

Sleep Executor (Number)

Joshua Jung edited this page Feb 24, 2017 · 1 revision

The Sleep executor (src) does nothing but wait the provided millisecond before continuing to the next executor.

Any Number by itself in a executor chain will trigger sleep for that number of milliseconds.

controller.addListener('countdown', [
  () => console.log('3'),
  100,
  () => console.log('2'),
  100,
  () => console.log('1')
]);