php8.5
Home/ Manual/ pthreads / thread/ Thread::isStarted

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)

Source: reference/pthreads/thread/isstarted.xml · from the official PHP manual (php/doc-en)