Creates a new Pledge instance.
Optionalarg: string | Pledge.Constructor
An optional configuration object or string tag
StaticisType guard to check if a value is an authentic Pledge instance
Readonly signal accessor bound to this pledge with an initial value of undefined.
StaticSTATEStaticstatusRejects the underlying promise.
The reason for rejection
The internal promise
Bridges this Pledge into a synchronous Signify signal. While pending, returns the optional defaultValue (default: undefined). When resolved, reactively returns the resolved value. If rejected, the signal rethrows the rejection error upon access.
OptionaldefaultValue: D
Optional fallback value returned while pending.
A ReadonlySignal bound to this pledge's resolution.
Static[dispose]reset static defaults
StaticinitInitializes global defaults for all future Pledge instances.
Optionalarg: string | Pledge.Constructor
The global configuration or tag
The updated static status configuration
A lightweight wrapper around Promises (utilizing
Promise.withResolvers) that exposesresolve,reject, and state-tracking methods. Useful for deferred execution and managing asynchronous lifecycles.Example