Handles lifecycle management of other components.

Implements

  • Multiplex

Constructors

Accessors

Methods

  • Add a Worker.

    The runtime considers itself "active" if there are one or more workers installed.

    A worker must either be PromiseLike or Constructable for the runtime to detect completion. On completion the worker is removed and destroyed if the worker is Destructable.

    Once added, the worker is owned by the RuntimeService until closed, resolved or removed via delete.

    Parameters

    Returns void

  • Interrupt handler. Triggered by e.g. on SIGINT on unixish systems.

    The default implementation cancels the runtime.

    Returns boolean

    a boolean indicating whether to continue trapping interrupts