[ruby-core:81031] Re: [ruby-cvs:65407] normal:r58236 (trunk): thread.c: comments on M:N threading [ci skip]

From: Eric Wong <normalperson@...>
Date: 2017-05-08 03:01:20 UTC
List: ruby-core #81031
SASADA Koichi <ko1@atdot.net> wrote:
> On 2017/05/08 10:53, SASADA Koichi wrote:
> > Yes. I'm thinking to introduce new constructor like ScheduledFiber.new
> > or something like that (maybe that name is not suitable, too). I believe
> > we shouldn't change the behavior just after creation.
> 
> `Fiber.scheduler.add_auto_fiber{ ... }` (naming is not fixed) (operation
> for scheduler) is my first idea.

Too verbose, I think.  If I want to type more, I would not be
using Ruby :)   How about adding kwarg to Fiber.new?

	Fiber.new(auto: true) { ... }

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread