Vocabulary
concurrency.promises

Inputs
valuean object
promisea promise


Outputs
None

Word description
Fulfills a promise by writing a value to it. Any threads waiting for the value are notified.

Errors
Throws an error if the promise has already been fulfilled.

Definition