The failure value or undefined if either incomplete or completed successfully.
This can be used to force the waitable to have a specified value or error -- usually for testing.
A technical, but human-readable ID, which isn't guaranteed to be unique
If true
, the primary function is being run / waited for
If true
, either the value or error have a defined value
If true
, this waitable is locked and the primary function won't be started
If true
, the waitable is locked and doesn't already have a value (ex. from a default value)
A marker indicating that this is a waitable type
Resets the waitable so that the primary function can run again.
If 'soft'
, current values are kept (though errors are cleared). If 'hard'
, both current value and errors are
cleared.
The success value or undefined if either incomplete or an error occurred.
Returns a promise that resolves when the waitable is complete or reset or when this call times out
A state representation for a value or error producing, synchronous or asynchronous, function, which may: