Amp\Internal\Producer::subscribe PHP Méthode

subscribe() public méthode

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