Skip to content

Instantly share code, notes, and snippets.

@papandreou
Created June 4, 2011 10:55
Show Gist options
  • Save papandreou/1007802 to your computer and use it in GitHub Desktop.
Save papandreou/1007802 to your computer and use it in GitHub Desktop.
var seq = require('seq'),
obj = {};
for (var i = 0 ; i < 10000 ; i += 1) {
var otherObj = {foo: obj};
obj['foo' + i] = otherObj
}
seq([obj])
.parEach(function (obj) {
console.warn('the obj = ', obj);
this();
})
.seq(function () {
console.warn('done!');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment