… | |
… | |
333 | Feed some events on this watcher into EV. EV will react to this call as if |
333 | Feed some events on this watcher into EV. EV will react to this call as if |
334 | the watcher had received the given C<$revents> mask. |
334 | the watcher had received the given C<$revents> mask. |
335 | |
335 | |
336 | =item $revents = $w->clear_pending |
336 | =item $revents = $w->clear_pending |
337 | |
337 | |
338 | If the watcher is pending, this function returns clears its pending status |
338 | If the watcher is pending, this function clears its pending status and |
339 | and returns its C<$revents> bitset (as if its callback was invoked). If the |
339 | returns its C<$revents> bitset (as if its callback was invoked). If the |
340 | watcher isn't pending it does nothing and returns C<0>. |
340 | watcher isn't pending it does nothing and returns C<0>. |
341 | |
341 | |
342 | =item $previous_state = $w->keepalive ($bool) |
342 | =item $previous_state = $w->keepalive ($bool) |
343 | |
343 | |
344 | Normally, C<EV::loop> will return when there are no active watchers |
344 | Normally, C<EV::loop> will return when there are no active watchers |