PHP Трейт Amp\Internal\Producer

Note that it is the responsibility of the user of this trait to ensure that subscribers have a chance to subscribe first before emitting values.
Наследование: use trait Placeholder
Показать файл Открыть проект

Открытые методы

Метод Описание
complete ( )
subscribe ( callable $onNext )

Приватные методы

Метод Описание
emit ( mixed $value ) : Promise Emits a value from the observable. The returned promise is resolved with the emitted value once all subscribers have been invoked.
resolve ( mixed $value = null ) Resolves the observable with the given value.

Описание методов

complete() публичный метод

public complete ( )

subscribe() публичный метод

public subscribe ( callable $onNext )
$onNext callable