The state of the wrapped promise.
If the wrapped promise was resolved, returns its value.
the resolved value of the wrapped promise.
StaticcreateCreates and returns a PromiseStatus (see for an example) after
awaiting a helper Promise to allow for the given p to propagate its
state to the PromiseStatus in case it is already settled.
Wrap this around a
Promisewith pstatus to inspect its state, in particular also to see whether its pending. This object itself is not promise-like. If the wrapped promise needs to be then'ed or awaited for just do so. Example.