public function subscribe(callable $onNext) { if ($this->resolved) { return; } $this->subscribers[] = $onNext; }