async: Async once-event

Description Usage Arguments

Description

Async once-event

Async event iterator

Queue function fn execution. Call is added to the current phase check loop.

Waits x ms before queueing function fn execution. Call is added to the next phase timer loop.

Execute function on next tick/phase of event loop. E.g., if the current phase of the event loop is the timer phase, the function will be queued prior to the callback phase.

Usage

1
2
3
4
5
6
7
8
9
once(emitter, event)

on(emitter, event)

set_immediate(fn, ...)

set_timeout(fn, ms, ...)

next_tick(fn, ...)

Arguments

emitter

an EventEmitter object

event

character vector


ElianHugh/emitters documentation built on Feb. 6, 2022, 4:55 a.m.