Worker
PHP Manual

Worker::shutdown

(PECL pthreads >= 2.0.0)

Worker::shutdownSynchronization

Descrierea

public boolean Worker::shutdown ( void )

Shuts down the Worker after executing all the objects previously stacked

Parametri

Această funcție nu are parametri.

Valorile întoarse

Exemple

Example #1 Shutdown the referenced Worker

<?php
$my 
= new Worker();
$my->start();
/* ... */
var_dump($my->shutdown());
/* ... */
?>

Exemplul de mai sus va afișa:

bool(true)


Worker
PHP Manual