eio_event_loop

Polls libeio until all requests proceeded

&reftitle.description; `bool` `eio_event_loop`

`eio_event_loop` polls libeio until all requests proceeded.

&reftitle.parameters; &no.function.parameters;
&reftitle.returnvalues;

`eio_event_loop` returns &true; on success,&return.falseforfailure;.

&reftitle.examples;

### `eio_event_loop` example

    <?php
    $temp_filename = "eio-temp-file.tmp";
    touch($temp_filename);

    /* Is called when eio_chmod() finished */
    function my_chmod_callback($data, $result) {
        global $temp_filename;

        if ($result == 0 && !is_readable($temp_filename) && is_writable($temp_filename)) {
            echo "eio_chmod_ok";
        }

        @unlink($temp_filename);
    }

    eio_chmod($temp_filename, 0200, EIO_PRI_DEFAULT, "my_chmod_callback");
    eio_event_loop();
    ?>

&example.outputs.similar;

    eio_chmod_ok

&reftitle.seealso;

- `eio_poll`