|poller (polling_function :: (%opt -> @list))) :: (%opt) -> @list||Accepts a code reference, that returns a list of results, where the first scalar is a boolean value that indicates whether a single-shot polling succeeded or not. Returns a new lambda, that accepts timeout, deadline, and frequency options ( see poll_event below for the options description). The lambda returns @list if polling succeeds within a given time span, or empty list otherwise. The options passed to the lambda are also passed to the polling function.|
|poll_event $callback, $method, $poller, $deadline, $frequency, @param||
Registers a polling event on the current lambda. $poller will be called with
first parameter as the expiration flag, so it will be up to the programmer how
to respond if both polling succeeded and timeout occured. $poller must
return first parameter the success flag, which means, if true, that the event
must not be watched anymore, and the associated lambda must be notified of the
event. Other parameters are passed to $callback, in free form, according to
the API that the caller of poll_event implements.
$frequency sets up the polling frequency. If undef, then polling occurs during the idle time, when other events are passing.
Returns the newly created event record.
Example of use:
Brutally removes the polling record from the watching queue. Not for direct use.
For the graceful event removal use one of the following:
Dmitry Karasik, <email@example.com>.
|perl v5.20.3||IO::LAMBDA::POLL (3)||2012-03-14|