W3C home > Mailing lists > Public > www-tag@w3.org > January 2014

Re: [promises] Guidance on the usage of promises for API developers

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 14 Jan 2014 10:08:11 -0500
Message-ID: <52D552DB.2060704@mit.edu>
To: Domenic Denicola <domenic@domenicdenicola.com>, Takeshi Yoshino <tyoshino@google.com>, "www-tag@w3.org" <www-tag@w3.org>
CC: public-webapps <public-webapps@w3.org>
On 1/14/14 9:22 AM, Domenic Denicola wrote:
> Do you think it would be improved by nesting step 5 under "These steps will be run asynchronously"?

Yes.  Otherwise if there is another method that allows synchronously 
checking whether a bookmark has been added I would expect such a method 
to return true if called immediately after the addBookmark as specified 
here returns, whereas the obvious desired behavior is for it to return 
false.

-Boris
Received on Tuesday, 14 January 2014 15:08:42 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:33:23 UTC