Thread::isStarted
PHP function
Edit on GitHub ✎
(PECL pthreads >= 2.0.0)
State Detection
Description
Thread::isStarted(): bool
Tell if the referenced Thread was started
Parameters Parameters
Return Values
Success
Examples
Tell if the referenced Thread was started
php
<?php
$worker = new Worker();
$worker->start();
var_dump($worker->isStarted());
?>The above example will output:
output
bool(true)