[Haskell-cafe] timely shutdown of timer threads

Johan Tibell johan.tibell at gmail.com
Wed Feb 2 23:02:48 CET 2011

On Wed, Feb 2, 2011 at 10:42 PM, Warren Harris <warrensomebody at gmail.com> wrote:
> Interesting. I hadn't thought of this solution. You're forking the timer to yet a third thread so that if it continues waiting beyond the checkpoint thread shutdown it doesn't really matter. I guess that works as long as the main thread doesn't wait for all other threads to terminate before terminating the app.
> It still seems to me that haskell is lacking when it comes to operations that can wait for multiple conditions.

I think we can make waiting for both I/O activity and timers at the
same time using the I/O manager. I will need to do this for my planned
timeout support in the network package.


More information about the Haskell-Cafe mailing list