Changeset View
Changeset View
Standalone View
Standalone View
src/repository/graph/query/ArcanistGitCommitGraphQuery.php
Show First 20 Lines • Show All 100 Lines • ▼ Show 20 Lines | while ($this->futures || $this->iterators) { | ||||
while (count($this->iterators) < $iterator_limit) { | while (count($this->iterators) < $iterator_limit) { | ||||
if (!$this->futures) { | if (!$this->futures) { | ||||
break; | break; | ||||
} | } | ||||
$future = array_pop($this->futures); | $future = array_pop($this->futures); | ||||
$future->start(); | $future->start(); | ||||
$iterator = id(new LinesOfALargeExecFuture($future)) | $iterator = (new LinesOfALargeExecFuture($future)) | ||||
->setDelimiter("\1"); | ->setDelimiter("\1"); | ||||
$iterator->rewind(); | $iterator->rewind(); | ||||
$iterator_key = $this->getNextIteratorKey(); | $iterator_key = $this->getNextIteratorKey(); | ||||
$this->iterators[$iterator_key] = $iterator; | $this->iterators[$iterator_key] = $iterator; | ||||
} | } | ||||
$limit = $this->getLimit(); | $limit = $this->getLimit(); | ||||
▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0