Method |
Description |
|
__clone ( ) |
Returns the thread to the condition before starting. The new thread can be started and run independently of the
first thread. |
|
__construct ( callable $function, $args ) |
Creates a new thread. |
|
__destruct ( ) |
Kills the thread if it is still running. |
|
enabled ( ) : boolean |
Checks if threading is enabled. |
|
isRunning ( ) : boolean |
Checks if the context is running. |
|
join ( ) : Generator |
|
|
kill ( ) |
Immediately kills the context. |
|
receive ( ) : Generator |
|
|
send ( $data ) : Generator |
|
|
spawn ( callable $function, $args ) : Thread |
Spawns a new thread and runs it. |
|
start ( ) |
Spawns the thread and begins the thread's execution. |
|