Creates a new promise and stores it in cache for later resolution
The expected type of the resolved value
The unique identifier for the promise
Creation options
Optionaltimeout?: numberTimeout in milliseconds after which the promise auto-rejects
A promise that will be resolved/rejected when resolve/reject is called with the same nonce
Checks if a promise with the given nonce exists
The unique identifier for the promise
True if the promise exists in cache
Rejects a pending promise by its nonce and removes it from cache
The unique identifier for the promise
The error to reject the promise with
Resolves a pending promise by its nonce and removes it from cache
The unique identifier for the promise
Optionalvalue: unknownThe value to resolve the promise with
Manages pending promises for request-response patterns using nonce-based correlation. Allows creating promises that can be resolved/rejected externally by their nonce identifier.