MCPcopy Index your code
hub / github.com/nodegit/nodegit / next

Function next

test/tests/revwalk.js:380–401  ·  view source on GitHub ↗
(walker, count)

Source from the content-addressed store, hash-verified

378 });
379
380 function next(walker, count) {
381 var promise = null;
382 for (var i = 0; i < count; i++) {
383 if (!promise) {
384 promise = walker.next();
385 }
386 else {
387 promise = promise.then(getNext);
388 }
389 }
390 return promise.catch(function(error) {
391 if (error && error.errno === NodeGit.Error.CODE.ITEROVER) {
392 return Promise.resolve();
393 } else {
394 throw error;
395 }
396 });
397
398 function getNext() {
399 return walker.next();
400 }
401 }
402});

Callers 2

revwalk.jsFile · 0.85
utils.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…