php8.5
Home/ Manual/ eio / functions/ eio_busy

eio_busy

PHP function Edit on GitHub ✎

(PECL eio >= 0.0.1dev)

Artificially increase load. Could be useful in tests, benchmarking

Description

eio_busy(int $delay, int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, mixed $data = NULL): resource

eio_busy() artificially increases load taking delay seconds to execute. May be used for debugging, or benchmarking.

Parameters

delay

Delay in seconds

pri

Values

callback

This callback is called when all the group requests are done.

data

Arbitrary variable passed to callback.

Return Values

eio_busy() returns request resource on success,Falseforfailure.

See Also

Source: reference/eio/functions/eio-busy.xml · from the official PHP manual (php/doc-en)