Metreeca Gear
    Preparing search index...

    Type Alias Binding<T>

    Binding: readonly [service: Service<T>, factory: () => Awaitable<T>]

    Service binding.

    Pairs a service with the factory standing in for it, so that every lookup of the service within an execution created with the pair yields the substitute's instance.

    The substitute may await whatever it needs to construct that instance, as it is constructed when the execution opens rather than on first lookup, under the terms detailed at Executor.

    Type Parameters

    • T extends Defined

      The type of the bound service