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
파일 보기 프로젝트 열기: amphp/amp

공개 메소드들

메소드 설명
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