InterruptResponder
Unpublished development API. This package is under development and is not available as a published release.
Answers one pending interrupt from the view renderInterrupt returns.
import type { InterruptResponder } from '@threadplane/react/chat';Declaration
export interface InterruptResponder {
readonly answered: boolean;
cancel(): void;
resolve(value?: PlainValue): void;
readonly sending: boolean;
}Members
answered
True once this interrupt has an answer that waits on the other pending ones.
readonly answered: boolean;cancel · overload 1
Cancels this interrupt, where the backend supports cancelling.
cancel(): void;Returns
voidresolve · overload 1
Resolves this interrupt, with the value the backend expects for it.
resolve(value?: PlainValue): void;Parameters
value· optionalPlainValue
Returns
voidsending
True while the answers are being sent; disable the controls.
readonly sending: boolean;