From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id 5D9131BA0009 for ; Mon, 8 May 2017 11:18:00 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id 0A1A9B5D83D for ; Mon, 8 May 2017 12:01:29 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id 6DDC718CC81A for ; Mon, 8 May 2017 12:01:29 +0900 (JST) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id EB2B912069F; Mon, 8 May 2017 12:01:28 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from dcvr.yhbt.net (dcvr.yhbt.net [64.71.152.64]) by neon.ruby-lang.org (Postfix) with ESMTPS id 5BB6812045C for ; Mon, 8 May 2017 12:01:22 +0900 (JST) Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 3710220188; Mon, 8 May 2017 03:01:20 +0000 (UTC) Date: Mon, 8 May 2017 03:01:20 +0000 From: Eric Wong To: ruby-core@ruby-lang.org Message-ID: <20170508030120.GB24763@starla> References: <20170402011414.AEA9B64CEE@svn.ruby-lang.org> <8a2b82e3-dc07-1945-55f9-5a474e89130b@ruby-lang.org> <20170402023514.GB30476@dcvr> <76459664-9857-4244-7d43-79b24e737efc@atdot.net> <20170403044254.GA16328@starla> <20170508003315.GA3789@starla> <38090d10-c6a1-5097-66af-130275d773ea@atdot.net> <2b47c736-08d8-095b-0454-2dd0b1020b03@atdot.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <2b47c736-08d8-095b-0454-2dd0b1020b03@atdot.net> X-ML-Name: ruby-core X-Mail-Count: 81031 Subject: [ruby-core:81031] Re: [ruby-cvs:65407] normal:r58236 (trunk): thread.c: comments on M:N threading [ci skip] X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" SASADA Koichi 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) { ... }