Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

DeferredData

class DeferredData {
constructor(data: Record<string, unknown>, responseInit?: ResponseInit);
private abortPromise;
private controller;
private emit;
private onSettle;
private pendingKeysSet;
private subscribers;
private trackPromise;
private unlistenAbortSignal;
data: Record<string, unknown>;
deferredKeys: string[];
get done(): boolean;
init?: ResponseInit;
get unwrappedData(): {};
get pendingKeys(): string[];
 
cancel(): void;
resolveData(signal: AbortSignal): Promise<boolean>;
subscribe(fn: (aborted: boolean, settledKey?: string) => void): () => boolean;
}

§Constructors

§
new DeferredData(data: Record<string, unknown>, responseInit?: ResponseInit)
[src]

§Properties

§
abortPromise
[src]
§
controller
[src]
§
onSettle
[src]
§
pendingKeysSet
[src]
§
subscribers
[src]
§
trackPromise
[src]
§
unlistenAbortSignal
[src]
§
data: Record<string, unknown>
[src]
§
deferredKeys: string[]
[src]
§
done: boolean readonly
[src]
§
init: ResponseInit
[src]
§
unwrappedData: {} readonly
[src]
§
pendingKeys: string[] readonly
[src]

§Methods

§
cancel(): void
[src]
§
resolveData(signal: AbortSignal): Promise<boolean>
[src]
§
subscribe(fn: (aborted: boolean, settledKey?: string) => void): () => boolean
[src]