summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/docs/server2/future_test.py
Commit message (Collapse)AuthorAgeFilesLines
* Docserver: Implement ContentProvider.GetVersion.kalman@chromium.org2014-08-131-2/+25
| | | | | | | | | | BUG=402903 R=yoz@chromium.org NOTRY=true Review URL: https://codereview.chromium.org/462103003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@289373 0039d316-1c4b-4281-b951-d872f2087c98
* Convert APIListDataSource to use Future.Then() rather than Get().kalman@chromium.org2014-08-051-4/+45
| | | | | | | | | | | | I needed to change the behaviour of Future.Then() to implement this. BUG=306341 R=yoz@chromium.org NOTRY=true Review URL: https://codereview.chromium.org/438403002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287633 0039d316-1c4b-4281-b951-d872f2087c98
* Docserver: Update Future.Then() to be more Promise-likeahernandez.miralles@gmail.com2014-08-051-0/+57
| | | | | | | | | BUG=306341 NOTRY=True Review URL: https://codereview.chromium.org/417163004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287482 0039d316-1c4b-4281-b951-d872f2087c98
* Docserver: Add a Race() method to the futures module, named and all-butkalman@chromium.org2014-07-301-1/+95
| | | | | | | | | | | | | | equivalent to Promise.race(). Rename Collect() to All() to match Promise.all(). The former is needed for a different patch, the latter is a nice-to-have and fits in better when we have parallel Futures. BUG=306341 R=yoz@chromium.org NOTRY=true Review URL: https://codereview.chromium.org/429983003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286637 0039d316-1c4b-4281-b951-d872f2087c98
* Docserver: Remove the "delegate" option from the Future constructor. Thekalman@chromium.org2014-03-261-19/+15
| | | | | | | | | | | | pattern of Future(delegate=Gettable(callback)) was getting very common, so this replaces it with just Future(callback=callback). R=yoz@chromium.org NOTRY=true Review URL: https://codereview.chromium.org/198053015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259410 0039d316-1c4b-4281-b951-d872f2087c98
* Docserver: greatly improve the error logging by (a) preserving the stack ↵kalman@chromium.org2013-04-251-0/+74
traces in Futures, (b) actually logging the stack trace, and (c) respecting DeadlineExceededErrors. BUG=167432 Review URL: https://codereview.chromium.org/14333015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196309 0039d316-1c4b-4281-b951-d872f2087c98