PHP 클래스 Icicle\Concurrent\Threading\Internal\Thread

상속: extends Thread
파일 보기 프로젝트 열기: icicleio/concurrent 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( resource $socket, callable $function, array $args = [] ) Creates a new thread object.
kill ( ) Sets a local variable to true so the running event loop can check for a kill signal.
run ( ) Runs the thread code and the initialized function.

비공개 메소드들

메소드 설명
execute ( Channel $channel ) : Generator

메소드 상세

__construct() 공개 메소드

Creates a new thread object.
public __construct ( resource $socket, callable $function, array $args = [] )
$socket resource IPC communication socket.
$function callable The function to execute in the thread.
$args array Arguments to pass to the function.

kill() 공개 메소드

Sets a local variable to true so the running event loop can check for a kill signal.
public kill ( )

run() 공개 메소드

Runs the thread code and the initialized function.
public run ( )