Class: Readily

core.Readily

Classes that extend this classes will have a ready state, and you can delay to run your functions when the instance turns into the ready state.

new core.Readily () overrides

Extends

Members

ready boolean

Whether this instance is ready, set true to this field will mark this instance as ready, and will run the callback functions registered by onReady.

Methods

onReady (fcn) void

Register for callback when this instance turns into the ready state, will be called directly if it was ready.

Name Type Description
fcn () => void

Inherited Methods

From class core.EventEmitter

emit (event, …args) boolean inherited

Fires an event with args, this will call each of the listeners registered for the given event.

Name Type Description
event T

the event id

args any

related arguments

Returns:
Type Description
boolean