Changeset View
Changeset View
Standalone View
Standalone View
src/future/FuturePool.php
| Show All 28 Lines | if (!isset($this->futures[$future_key])) { | ||||
| $iterator->addFuture($future); | $iterator->addFuture($future); | ||||
| $this->futures[$future_key] = $future; | $this->futures[$future_key] = $future; | ||||
| } | } | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getFutures() { | |||||
| return $this->futures; | |||||
| } | |||||
| public function hasFutures() { | public function hasFutures() { | ||||
| return (bool)$this->futures; | return (bool)$this->futures; | ||||
| } | } | ||||
| public function resolve() { | public function resolve() { | ||||
| $iterator = $this->iterator; | $iterator = $this->iterator; | ||||
| if (!$iterator) { | if (!$iterator) { | ||||
| Show All 23 Lines | |||||