[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: How to wait for both sockets and timers in a coroutine dispatcher.
- From: "Thijs Schreijer" <thijs@...>
- Date: Fri, 6 Jan 2012 07:50:36 +0100
> > This should be portable, but you'll want a decent data structure that
> > sorts coroutines by wake-up time to do this.
>
> Wow, that's great, it seems to a portable solution.
>
> > It might be that copas does this, and if so you can steal some of
> > their code (or maybe just use copas?).
>
> I'll see if copas satisfies me, thanks very much.
If you consider using Copas, then CopasTimer https://github.com/Tieske/CopasTimer can provide the timer capability.