Creates a new Pledge instance.
Optionalarg: string | Pledge.ConstructorAn optional configuration object or string tag
StaticSTATEStaticstatusRejects the underlying promise.
The reason for rejection
The internal promise
Static[dispose]reset static defaults
StaticinitInitializes global defaults for all future Pledge instances.
Optionalarg: string | Pledge.ConstructorThe 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