PHP 클래스 Icicle\Concurrent\Sync\ChannelledStream

Supports full duplex read and write.
상속: implements Icicle\Concurrent\Sync\Channel
파일 보기 프로젝트 열기: icicleio/concurrent

공개 메소드들

메소드 설명
__construct ( ReadableStream $read, WritableStream $write = null ) Creates a new channel instance.
receive ( ) : Generator
send ( $data ) : Generator

메소드 상세

__construct() 공개 메소드

Creates a new channel instance.
public __construct ( ReadableStream $read, WritableStream $write = null )
$read ReadableStream
$write WritableStream

receive() 공개 메소드

public receive ( ) : Generator
리턴 Generator

send() 공개 메소드

public send ( $data ) : Generator
리턴 Generator