PHP 인터페이스 Amp\Observable

상속: extends Interop\Async\Promise
파일 보기 프로젝트 열기: amphp/amp 0 사용 예제들

공개 메소드들

메소드 설명
subscribe ( callable $onNext ) Registers a callback to be invoked each time value is emitted from the observable. If the function returns an promise, back-pressure is applied to the promise until the returned promise is resolved.

메소드 상세

subscribe() 공개 메소드

Exceptions thrown from $onNext (or failures of promises returned from $onNext) will fail the returned Subscriber with the thrown exception.
public subscribe ( callable $onNext )
$onNext callable Function invoked each time a value is emitted from the observable.