
2 Dec
2010
2 Dec
'10
5:21 a.m.
Hi Attila, On Wed, Dec 1, 2010 at 8:09 PM, Attila Lendvai <attila.lendvai@gmail.com> wrote:
(sb-ext:with-timeout 1 (read *standard-input*))
with-deadline also doesn't work from inside slime, but generally you should prefer that to with-timeout in production systems.
Thanks for the advice. Being able to restrict the signal in specific code block is very nice.
(with-timeout is not safe due to async unwinds at random points in the code (unless the entire codebase is prepared for that)).
That makes sense, and I suppose using without-interrupts is unacceptable in the body part. Since the part I want timeouts are all IO function calls, I think it should be safe. But I think I'd better use with-deadline. :) -- Jianshi