Re: [presentation-api] Updates to PR #277 that addresses issues #254, #269, #273

In both cases, you would see both "first" and "second" (a second call 
to `then` on the same Promise does not replace the first). The order 
is guaranteed if `connectionList` always returns the same Promise. 
There may be edge cases if `connectionList` only returns the same 
Promise as long as it is unsettled, although I think things will just 
work as expected in the end.

That said, having to think about edge cases typically shows that the 
design could be improved. Also, come to think about it, developers 
probably expect an attribute to always return the same object in any 
case. Last but not least, as pointed out by @schien in #281, the IDL 
currently *requires* the attribute to always return the same Promise 
(due to the presence of `[SameObject]`).

I'll update the PR.

-- 
GitHub Notification of comment by tidoust
Please view or discuss this issue at 
https://github.com/w3c/presentation-api/pull/278#issuecomment-212352039
 using your GitHub account

Received on Wednesday, 20 April 2016 09:36:34 UTC