… | |
… | |
3518 | |
3518 | |
3519 | There are some other functions of possible interest. Described. Here. Now. |
3519 | There are some other functions of possible interest. Described. Here. Now. |
3520 | |
3520 | |
3521 | =over 4 |
3521 | =over 4 |
3522 | |
3522 | |
3523 | =item ev_once (loop, int fd, int events, ev_tstamp timeout, callback) |
3523 | =item ev_once (loop, int fd, int events, ev_tstamp timeout, callback, arg) |
3524 | |
3524 | |
3525 | This function combines a simple timer and an I/O watcher, calls your |
3525 | This function combines a simple timer and an I/O watcher, calls your |
3526 | callback on whichever event happens first and automatically stops both |
3526 | callback on whichever event happens first and automatically stops both |
3527 | watchers. This is useful if you want to wait for a single event on an fd |
3527 | watchers. This is useful if you want to wait for a single event on an fd |
3528 | or timeout without having to allocate/configure/start/stop/free one or |
3528 | or timeout without having to allocate/configure/start/stop/free one or |