Interface BoundedCallOptions

Options accepted by every bounded host call.

interface BoundedCallOptions {
    onPending?: (state: PendingState) => void;
    signal?: AbortSignal;
    timeoutMs?: number;
}

Properties

onPending?: (state: PendingState) => void

Fired when the call passes PENDING_NOTICE_MS, so a caller can render a waiting state rather than an unexplained pause — and again, after that, whenever the host starts or stops waiting on the user, so the waiting state can name what is on screen now.

signal?: AbortSignal

Abort the wait. The SDK stops waiting and rejects with code: 'cancelled'.

timeoutMs?: number

Override the classified default. Infinity disables the bound — an escape hatch for a caller that genuinely owns the wait (it must then provide its own way out).

An explicit value is the WHOLE bound: it is never suspended by the host-attention signal, because a caller that named a number owns the wait.