exception = $exception; } /** * {@inheritdoc} */ public function onResolve(callable $onResolved) { try { $onResolved($this->exception, null); } catch (\Throwable $exception) { Loop::defer(function () use ($exception) { throw $exception; }); } } /** * {@inheritdoc} */ public function listen(callable $onNext) { } }