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