ruby-changes:63548
From: Samuel <ko1@a...>
Date: Sun, 8 Nov 2020 16:41:14 +0900 (JST)
Subject: [ruby-changes:63548] afe3cb782b (master): `Fiber.new(blocking: false)` is now the default.
https://git.ruby-lang.org/ruby.git/commit/?id=afe3cb782b From afe3cb782bbdb5ef38c865b1c857e6cd9083e978 Mon Sep 17 00:00:00 2001 From: Samuel Williams <samuel.williams@o...> Date: Sun, 8 Nov 2020 16:12:55 +1300 Subject: `Fiber.new(blocking: false)` is now the default. diff --git a/doc/scheduler.md b/doc/scheduler.md index 19b44ee..9994831 100644 --- a/doc/scheduler.md +++ b/doc/scheduler.md @@ -73,7 +73,7 @@ program. https://github.com/ruby/ruby/blob/trunk/doc/scheduler.md#L73 Fibers can be used to create non-blocking execution contexts. ~~~ ruby -Fiber.new(blocking: false) do +Fiber.new do puts Fiber.current.blocking? # false # May invoke `Fiber.scheduler&.io_wait`. -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/