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>);
private abortPromise;
private controller;
private onSettle;
private pendingKeys;
private subscriber?;
private trackPromise;
private unlistenAbortSignal;
data: Record<string, unknown>;
get done(): boolean;
get unwrappedData(): {};
 
cancel(): void;
resolveData(signal: AbortSignal): Promise<boolean>;
subscribe(fn: (aborted: boolean) => void): void;
}

§Constructors

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

§Properties

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

§Methods

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