Changeset View
Changeset View
Standalone View
Standalone View
src/conduit/ArcanistConduitCall.php
| Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | private function newFuture() { | ||||
| return $this->future; | return $this->future; | ||||
| } | } | ||||
| public function resolve() { | public function resolve() { | ||||
| if (!$this->future) { | if (!$this->future) { | ||||
| $this->newFuture(); | $this->newFuture(); | ||||
| } | } | ||||
| $this->getEngine()->resolveFuture($this->getKey()); | |||||
| return $this->resolveFuture(); | return $this->resolveFuture(); | ||||
| } | } | ||||
| private function resolveFuture() { | private function resolveFuture() { | ||||
| $future = $this->future; | $future = $this->future; | ||||
| try { | try { | ||||
| $result = $future->resolve(); | $result = $future->resolve(); | ||||
| ▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines | |||||