[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Proposal for a new mechanism for delayed stuff
From: |
Vitalie Spinu |
Subject: |
Re: Proposal for a new mechanism for delayed stuff |
Date: |
Thu, 27 Dec 2012 10:40:22 +0100 |
User-agent: |
Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.2.91 (gnu/linux) |
>> Lars Ingebrigtsen <address@hidden>
>> on Tue, 25 Dec 2012 14:20:31 +0100 wrote:
[...]
> (with-timeout-forms
> (progn
> (bla)
> (bla))
> (1.5 (message "This is sure taking a lot of time..."))
> (10 (message "This is sure taking forever!")))
(bla) (bla) are asynchronous forms, right? I am probably missing
something, but there should be a callback, otherwise how do you know
when (bla) is finished?
Should negative numbers signify a repeated task?
(with-timeout-forms
(progn ...
)
(-1 (do-something-every-second))
)
Then you can pass an explicit callback:
(with-timeout-forms
(progn ...
(bla bla)
)
(-.1 (if-job-is-finished-break-timeout-loop))
)
Vitalie