inspector/stamps/settlements.svelte#
Classes#
Settlements#
Defined in: editor/src/inspector/stamps/settlements.svelte.ts:18
The settlement of the promise asked for last, and of no other: a component asking for one read after another holds one promise and its value at a time.
Type Parameters#
T#
T
Constructors#
Constructor#
new Settlements<
T>():Settlements<T>
Returns#
Settlements<T>
Methods#
of()#
of(
promise):Settlement<T> |undefined
Defined in: editor/src/inspector/stamps/settlements.svelte.ts:35
How promise settled; undefined while it is pending. Asking for
another promise than the last lets the last one go: its settlement,
held or still to come, is no longer kept.
Parameters#
promise#
Promise<T>
Returns#
Settlement<T> | undefined
Type Aliases#
Settlement#
Settlement<
T> = {fulfilled:true;value:T; } | {failure:unknown;fulfilled:false; }
Defined in: editor/src/inspector/stamps/settlements.svelte.ts:9
How a promise settled: fulfilled with value, or rejected with failure.
Type Parameters#
T#
T