>> I mean that if I didn't used Copas, I'd tried to use socket select
>> timeout to sleep until I have to either print something to stdout or
>> read incoming data from a socket. I'm not sure how to do this with
>> Copas though...

> Not sure I understand what you are trying to do, but... would something like 
> lalarm work for you?

> http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lalarm

> lalarm allows to register a function to be executed every now and then.

Is consistency of the rest of Lua state guaranteed when lalarm
callback is called? I'm afraid that the calls would be asynchronous...

I'm looking at copas.step() now, perhaps that would suffice...

Alexander.

_______________________________________________
Kepler-Project mailing list
Kepler-Project@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/

Reply via email to