From: Tony Arcieri Date: 2007-09-28T05:03:47+09:00 Subject: Re: Fibers as semi-coroutines enabled by default ------=_Part_5081_26684865.1190923425198 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 9/27/07, SASADA Koichi wrote: > > I'm planning to add something like channel/mailbox to Fiber. ... > is it overkill? > I think mailboxes can substantially improve the usefulness of Fibers, especially if you follow the approach of having Fibers automatically #yield when their mailbox is empty (or if you have mailbox filters, #yield when no messages match the filter) That's what I was doing here: http://pastie.caboo.se/97050 -- Tony Arcieri ------=_Part_5081_26684865.1190923425198 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 9/27/07, SASADA Koichi <ko1@atdot.net> wrote:
I'm planning to add something like channel/mailbox to Fiber.   ...
is it overkill?

I think mailboxes can substantially improve the usefulness of Fibers, especially if you follow the approach of having Fibers automatically #yield when their mailbox is empty (or if you have mailbox filters, #yield when no messages match the filter)

That's what I was doing here:

http://pastie.caboo.se/97050

--
Tony Arcieri ------=_Part_5081_26684865.1190923425198--