@bluelibs/runner - v5.5.0
    Preparing search index...

    Interface IPlatformAdapter

    interface IPlatformAdapter {
        clearTimeout: PlatformClearTimeout;
        id: PlatformId;
        init: () => Promise<void>;
        setTimeout: PlatformSetTimeout;
        createAsyncLocalStorage<T>(): IAsyncLocalStorage<T>;
        exit(code: number): void;
        getEnv(key: string): string | undefined;
        hasAsyncLocalStorage(): boolean;
        onShutdownSignal(handler: () => void): () => void;
        onUncaughtException(handler: (error: unknown) => void): () => void;
        onUnhandledRejection(handler: (reason: unknown) => void): () => void;
    }

    Implemented by

    Index

    Properties

    clearTimeout: PlatformClearTimeout
    init: () => Promise<void>
    setTimeout: PlatformSetTimeout

    Methods

    • Parameters

      • key: string

      Returns string | undefined

    • Parameters

      • handler: () => void

      Returns () => void

    • Parameters

      • handler: (error: unknown) => void

      Returns () => void

    • Parameters

      • handler: (reason: unknown) => void

      Returns () => void