PHP Класс Icicle\Concurrent\Threading\Internal\Thread

Наследование: extends Thread
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__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 ( )