Skip to main content
class AsyncAwaiter
implements IAsyncAwaiter<T>
import { AsyncAwaiter } from "https://deno.land/x/aiformrecognizer@v1.1.0/src/document-analysis-utils.ts";

Constructors

new
AsyncAwaiter(awaiter: IAsyncAwaiter<T>)

Type Parameters

T extends { id: string; }

Properties

readonly
progress

gets the current progress

readonly
status

Current progress status

Methods

abort(): void

Aborts the operation

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

Aborts the operation

Static Methods

get<TAwaiter extends IAsyncAwaiter<{ id: string; }>>(id: string)