@kkdev92/vscode-ext-kit - v7.1.0
    Preparing search index...

    Interface HostedServiceContext

    Context for starting or running a hosted service during the Application lifetime.

    interface HostedServiceContext {
        delay: (milliseconds: number) => Promise<void>;
        logger: Logger;
        signal: AbortSignal;
    }
    Index
    delay: (milliseconds: number) => Promise<void>

    Cancellation-aware delay. Resolves early when the signal aborts, so a background loop never keeps the host waiting on a timer.

    logger: Logger

    Logger scoped to this hosted service.

    signal: AbortSignal

    Aborts when the application begins stopping, and when activation ends without completing after this service started.

    A subscription made in start can be released here rather than in stop. The signal also covers the case stop cannot: a start that throws after subscribing, which is never followed by its own stop.