Options: {
    frequency: Duration;
    poll: (() => Promise<StatusResult>);
    timeout: Duration;
    timeoutErrorName?: string;
}

Options for the polling client.

Type declaration

  • frequency: Duration

    How frequent should the polling function be called.

  • poll: (() => Promise<StatusResult>)

    Polling function.

  • timeout: Duration

    Hard timeout for polling.

  • Optional timeoutErrorName?: string

    Change the name of the timeout error.

    if (err.name === 'MyChangedName) ...