[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ice-9 async-queue
From: |
Ludovic Courtès |
Subject: |
Re: ice-9 async-queue |
Date: |
Wed, 07 Mar 2012 22:11:24 +0100 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.93 (gnu/linux) |
Hi!
Andy Wingo <address@hidden> skribis:
> On Wed 08 Feb 2012 14:44, address@hidden (Ludovic Courtès) writes:
>
>> What do you think of adding a ‘cancel’ primitive to futures?
>
> It sounds good, but tricky to implement. I'm also not sure it's exactly
> the right interface -- for example, Java seems to have switched entirely
> away from the "cancel" API to the "interrupt" API. But you would know
> more about that than I would. Would you use cancel-thread or would you
> have the thread raise an exception via an async, or what?
I don’t know.
Actually, what kind of computation would the web server start that could
possibly need to be canceled? (Pure computation, that is.)
Thanks,
Ludo’.