PHP 5.4.33 Released

Worker::shutdown

(PECL pthreads >= 0.37)

Worker::shutdownSynchronization

Descrição

final public boolean Worker::shutdown ( void )

Shuts down the Worker after executing all the Stackables previously stacked

Parâmetros

Esta função não possui parâmetros.

Valor Retornado

Exemplos

Exemplo #1 Shutdown the referenced Worker

<?php
class My extends Worker {
    public function 
run() {
        
/* ... */
    
}
}
$my = new My();
$my->start();
/* ... */
var_dump($my->shutdown());
/* ... */
?>

O exemplo acima irá imprimir:

bool(true)

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top