Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Side by Side Diff: chrome/test/data/third_party/spaceport/js/util/chainAsync.js

Issue 10134041: Add test data for spaceport benchmark. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 define([ ], function () {
2 return function chainAsync(functions) {
3 functions = functions.slice();
4
5 function next() {
6 if (functions.length === 0) {
7 return;
8 }
9
10 var fn = functions.shift();
11 fn(function () {
12 setTimeout(next, 0);
13 });
14 }
15
16 setTimeout(next, 0);
17 };
18 });
OLDNEW
« no previous file with comments | « chrome/test/data/third_party/spaceport/js/util/cacheBust.js ('k') | chrome/test/data/third_party/spaceport/js/util/create.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698