eio_grp

PECL eio >= 0.0.1dev
eio_grp - Creates a request group
Manual
Code Examples

eio_grp( callable$callback, [string$data = NULL] ): resource

eio_grp creates a request group.

Parameters

callback

callback function is called when the request is done. It should match the following prototype:

void callback(mixed $data, int $result[, resource $req]);
data

is custom data passed to the request.

result

request-specific result value; basically, the value returned by corresponding system call.

req

is optional request resource which can be used with functions like eio_get_last_error

data

Arbitrary variable passed to callback.

Return Values

eio_grp returns request group resource on success, or false on failure.

Related Functions

Example of eio_grp

Show all examples for eio_grp

PHP Version:


Function eio_grp:

Eio Functions

Most used PHP functions