On Wed, Jul 31, 2013 at 11:38 AM, Domenic Denicola
<[email protected]> wrote:
> From: Tab Atkins Jr. [[email protected]]
>> For the purposes of this email, a promise "accepting" or "rejecting" means 
>> that its resolver's accept() or reject() method was called, or the 
>> equivalent internal magic.  "fulfill" means "accept or reject". "resolve" 
>> means "adopt or accept, depending on whether the value is a promise-like or 
>> not" (in other words, what the resolver's resolve() method does).  "adopt" 
>> means accepting or rejecting with the same value as the adopted promise.  If 
>> I should be using better terms, let me know.
>
> Thanks for the clarifications :). I think this is a bit confusing because it 
> is at odds with commonly-used terminology, from DOM Promises and Promises/A+, 
> but at least now things are defined and used in a self-consistent way. Much 
> appreciated.
>
> For the record, since you asked for better terms, the community consensus is:
>
> - "Fulfill" and "reject" are the two end states (as opposed to "pending").
> - "Settle" means "fulfill or reject."
> - "Resolve" means "adopt or fulfill."

Ah, I'd never heard the term "settle" before, in any of the threads
across the WGs here.  Got it.

~TJ
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to