DrScheme has a form
(object-wait-multiple timeout thunk)
which returns #f is thunk fails to return within timeout secs, or
returns the value of thunk
are there any similar constructs in openmcl or sbcl?
thanks
Chris Wright
From: Rahul Jain
Subject: Re: object-wait-multiple - timing out long running thunks
Date:
Message-ID: <87y8iwx1s3.fsf@nyct.net>
Chris Wright <········@hotmail.com> writes:
> DrScheme has a form
> (object-wait-multiple timeout thunk)
>
> which returns #f is thunk fails to return within timeout secs, or
> returns the value of thunk
Ugh. What if the thunk returns #f?!?
> are there any similar constructs in openmcl or sbcl?
SBCL has WITH-TIMEOUT. Dunno about OpenMCL. Tried (apropos "timeout")
yet?
--
Rahul Jain
·····@nyct.net
Professional Software Developer, Amateur Quantum Mechanicist