1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fiber.new(blocking: false) is now the default.

This commit is contained in:
Samuel Williams 2020-11-08 16:12:55 +13:00
parent 2f12af42f7
commit afe3cb782b
Notes: git 2020-11-08 16:41:19 +09:00

View file

@ -73,7 +73,7 @@ program.
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`.