Worker::shutdown

(PECL pthreads >= 2.0.0)

Worker::shutdownSynchronization

說明

public boolean Worker::shutdown ( void )

Shuts down the Worker after executing all the objects previously stacked

參數

此函式沒有參數。

回傳值

範例

Example #1 Shutdown the referenced Worker

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

上例將輸出:

bool(true)

add a note add a note

User Contributed Notes

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