PHP 8.3.4 Released!

Worker::shutdown

(PECL pthreads >= 2.0.0)

Worker::shutdownShutdown the worker

Descripción

public Worker::shutdown(): bool

Shuts down the worker after executing all of the stacked tasks.

Parámetros

Esta función no tiene parámetros.

Valores devueltos

Devuelve true en caso de éxito o false en caso de error.

Ejemplos

Ejemplo #1 Shutdown the referenced worker

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

El resultado del ejemplo sería:

bool(true)

add a note

User Contributed Notes

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