w3ctag / promises-guide

A guide for spec authors on how to use Promises in prose and WebIDL.
https://www.w3.org/2001/tag/doc/promises-guide
192 stars 24 forks source link

To fulfill or to resolve #70

Closed cynthia closed 4 years ago

cynthia commented 5 years ago

That is the problem.

...and it's unclear. Some tips might be nice.

From: https://github.com/WICG/web-transport/issues/29

kenchris commented 5 years ago

Web IDL has terminology for promises.

Settled, rejected, fulfilled and resolved :-) So even confusion there:

https://heycam.github.io/webidl/#es-promise-manipulation

To react to a Promise promise, given one or two sets of steps to perform, covering when the promise is fulfilled, rejected, or both, perform the following steps:

To create a resolved promise of type Promise, with x (a value of type T) in a Realm realm, perform the following steps:

@domenic

domenic commented 5 years ago

https://github.com/domenic/promises-unwrapping/blob/master/docs/states-and-fates.md

hober commented 4 years ago

Can we resolve (har har) this as a duplicate of #42?

cynthia commented 4 years ago

Yes.