This class manages Behavior instances owned by a Endpoint.

Constructors

Accessors

Methods

  • Activate any behaviors designated for immediate activation. Returns a promise iff any behaviors have ongoing initialization.

    Throws an error if any behavior crashes, but we allow all behaviors to settle before throwing. The goal is to surface multiple configuration errors and prevent inconsistent state caused by partial initialization.

    Returns MaybePromise

  • Access internal state for a Behavior.

    Internal state is not stable API and not intended for consumption outside of the behavior. However it is not truly private and may be accessed by tightly coupled implementation.

    As this API is intended for use by "friendly" code, it does not perform the same initialization assertions as does access to Behavior.State and Behavior.Events.

    Type Parameters

    Parameters

    • type: T

    Returns InstanceType<T["Internal"]>