|
ВведениеThis extension provides asyncronous POSIX I/O by means of » libeio C library written by Marc Lehmann.
Внимание
It is important to aware that each request is executed in a thread, and the order of execution of continuously queued requests basically is unpredictable. For instance, the following piece of code is incorrect. Пример #1 Incorrect requests
<?php Пример #2 Calling request from a request callback
<?php Пример #3 Calling request from a request callback
<?php Since version 0.3.0 alpha, a variable used in communications with libeio internally, could be retrieved with eio_get_event_stream(). The variable could be used to bind to an event loop supported by some other extension. You might organize a simple event loop where eio and libevent work together: Пример #4 Using eio with libevent
<?php |
|