… | |
… | |
38 | } |
38 | } |
39 | |
39 | |
40 | =cut |
40 | =cut |
41 | |
41 | |
42 | =item |
42 | =item |
43 | |
|
|
44 | =item Coro::EV::loop |
|
|
45 | |
|
|
46 | You have to call this function instead of EV::loop, EV::dispatch and |
|
|
47 | similar functions. EV is not generic enough to let Coro hook into yet, so |
|
|
48 | you have to use those replacement functions. |
|
|
49 | |
43 | |
50 | =item $revents = Coro::EV::timed_io_once $fd, $events, $timeout |
44 | =item $revents = Coro::EV::timed_io_once $fd, $events, $timeout |
51 | |
45 | |
52 | Blocks the coroutine until either the given event set has occured on the |
46 | Blocks the coroutine until either the given event set has occured on the |
53 | fd, or the timeout has been reached (if timeout is zero, there is no |
47 | fd, or the timeout has been reached (if timeout is zero, there is no |