ScotlandPHP

Worker::isShutdown

(PECL pthreads >= 2.0.0)

Worker::isShutdownState Detection

Описание

public bool Worker::isShutdown ( void )

Whether the worker has been shutdown or not.

Список параметров

У этой функции нет параметров.

Возвращаемые значения

Returns whether the worker has been shutdown or not.

Примеры

Пример #1 Detect the state of a worker

<?php
$worker 
= new Worker();
$worker->start();

var_dump($worker->isShutdown());

$worker->shutdown();

var_dump($worker->isShutdown());

Результат выполнения данного примера:

bool(false)
bool(true)

add a note add a note

User Contributed Notes

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