[iolib-devel] Running io handler periodically

Nikolay V. Razbegaev marsijanin at gmail.com
Thu May 20 18:35:43 UTC 2010


Stelian Ionescu <sionescu at cddr.org> writes:

> On Mon, 2010-05-17 at 22:24 +0400, Nikolay V. Razbegaev wrote:
>> Hello!
>> 
>> Is it possible to make io handler, that will be running periodically,
>> i.e. not every time when io will be possible? `iomux:set-io-handler'
>> have `:timeout' &key parameter, but, as i understand, it is poll
>> timeout.
>> 
>> Of course I cat call `sleep' inside io handler body, but it will be
>> freeze all other handlers in this thread too. So, can I run
>> `iomux:event-base' io handler periodically w/o `sleep' dirty hack?
>> 
>
> You can add a timer: the function is iolib.multiplex:add-timer

Thank you! I guess, that I missed it some how, then I looked for the
corresponding function/method in iomux package.




More information about the iolib-devel mailing list