@kkdev92/vscode-ext-kit - v4.1.1
    Preparing search index...

    Interface ServiceResolver

    Resolves services without transferring ownership to the caller. Singleton ownership stays with the container; disposable transients belong to the ResourceScope associated with this resolver.

    interface ServiceResolver {
        get<T>(token: ServiceToken<T>): T;
    }
    Index
    • Resolves a service synchronously, creating it on first use according to its lifetime.

      Type Parameters

      • T

      Parameters

      Returns T

      ServiceResolutionError when the token was never registered.

      ServiceResolutionError after container disposal or on a runtime dependency cycle.

      AsyncCallbackError when a factory returns a thenable.