Skip to main content
interface IAsyncAwaiter
import { type IAsyncAwaiter } from "https://deno.land/x/ai_form_recognizer@v1.1.0/mod.ts";

Async operation awaiter. Once wated, will pull the results until completed.

Type Parameters

TResult extends { id: string; }

Methods

wait(abort?: AbortSignal): Promise<TResult>

Starts pulling the result into the progress property and returns the result once completed

abort(): void

Aborts the operation

getter
status(): OperationStatus

Current progress status

getter
progress(): TResult

gets the current progress