caf_components/supervisor

Default implementation of a supervisor.

It uses the lazy start mode. See module:caf_components/gen_supervisor for details.

Source:

Extends

Methods

(static) newInstance($, spec) → {Promise.<Array.<any>>}

Source:

Factory method to create a supervisor component.

Parameters:
Name Type Description
$ ctxType

A context containing references to other components.

spec specType

Configuration data for this component.

Returns:

A tuple array returning an optional Error in the first argument, or the new component in the second.

Type
Promise.<Array.<any>>