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:
parent
2f12af42f7
commit
afe3cb782b
Notes:
git
2020-11-08 16:41:19 +09:00
1 changed files with 1 additions and 1 deletions
|
@ -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`.
|
||||
|
|
Loading…
Reference in a new issue