downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Worker::stack> <Worker::run
[edit] Last updated: Fri, 24 May 2013

view this page in

Worker::shutdown

(PECL pthreads >= 0.37)

Worker::shutdownSynchronisation

Description

final public boolean Worker::shutdown ( void )

Arrête le Worker après l'exécution de tous les Stackables de la file d'attente.

Liste de paramètres

Cette fonction ne contient aucun paramètre.

Valeurs de retour

Exemples

Exemple #1 Eteint le Worker référencé

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

L'exemple ci-dessus va afficher :

bool(true)



add a note add a note User Contributed Notes Worker::shutdown - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites