The duration, in milliseconds, to wait before deleting
settled Promise
s.
An empty PromiseMap
.
The number of Promise
s that were deleted.
The key of the Promise
to delete.
True if key
and the matching Promise
were in the owned set.
If key
is not in the owned set, a new Promise
will be created.
The key of the Promise
to get.
The matching Promise
to the key.
The key to check for membership in the owned set.
True if this contains the requested key.
The key of the Promise whose status is to be queried.
True if the key is in the owned set and the matching Promise
is fulfilled.
The key of the Promise whose status is to be queried.
True if the key is in the owned set and the matching Promise
is pending.
The key of the Promise
whose status is to be queried.
True if the key is in the owned set and the matching Promise
is rejected.
The key of the Promise
to be rejected. Must be pending or
not in the owned set.
The reason to reject the Promise
with.
True if a new Promise
was inserted.
Rejects all pending Promise
s that are not following another Promise
.
The reason to reject any pending Promise
s with.
The number of rejected Promise
s.
The matching Promise
to key
will remain pending until value
resolves. If value
is a Promise
-like type, the corresponding
Promise
will follow value
. If not, the owned Promise
will be
fulfilled.
The key of the Promise
to be settled. Must be pending or
not in the owned set.
The value to settle the Promise
to.
True if a new Promise
was inserted.
Generated using TypeDoc
PromiseMap
is a key-value store where the values arePromise
s. It allows for inspection of the state of ownedPromise
s - whether pending, fulfilled, or rejected - as well as the ability to resolve or reject ownedPromise
s that are pending.