Skip to main content
Deno 2 is finally here 🎉️
Learn more
interface IAsyncAwaiter
import { type IAsyncAwaiter } from "https://deno.land/x/aiformrecognizer@v1.2.0/src/interfaces/document-analysis.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