Metreeca Keep
    Preparing search index...

    Type Alias Deferred<R>

    A queued request paired with its promise-resolution hooks.

    Each batch a Handler receives is an array of Deferred entries. The handler reads each request, then calls resolve with its result (typed by Response) or reject with an error, once the backend round-trip and any nested requests issued through the Broker have settled.

    type Deferred<R extends Request> = {
        request: R;
        resolve(value: Response<R>): void;
        reject(error: unknown): void;
    }

    Type Parameters

    Index

    Methods

    Properties

    Methods

    Properties

    request: R