[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: pansz <pan.shizhu@...>
- Date: Fri, 6 Jan 2012 14:01:39 +0800
On Fri, Jan 6, 2012 at 9:35 AM, Sam Roberts <vieuxtech@gmail.com> wrote:
> 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.