Changeset View
Changeset View
Standalone View
Standalone View
src/future/Future.php
| Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | if ($this->hasStarted) { | ||||
| throw new Exception( | throw new Exception( | ||||
| pht( | pht( | ||||
| 'Future has already started; futures can not start more '. | 'Future has already started; futures can not start more '. | ||||
| 'than once.')); | 'than once.')); | ||||
| } | } | ||||
| $this->hasStarted = true; | $this->hasStarted = true; | ||||
| $this->startServiceProfiler(); | $this->startServiceProfiler(); | ||||
| $this->isReady(); | $this->updateFuture(); | ||||
| } | } | ||||
| final public function updateFuture() { | final public function updateFuture() { | ||||
| if ($this->hasException()) { | if ($this->hasException()) { | ||||
| return; | return; | ||||
| } | } | ||||
| if ($this->hasResult()) { | if ($this->hasResult()) { | ||||
| ▲ Show 20 Lines • Show All 179 Lines • Show Last 20 Lines | |||||