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
@ -73,7 +73,7 @@ program.
|
|||||||
Fibers can be used to create non-blocking execution contexts.
|
Fibers can be used to create non-blocking execution contexts.
|
||||||
|
|
||||||
~~~ ruby
|
~~~ ruby
|
||||||
Fiber.new(blocking: false) do
|
Fiber.new do
|
||||||
puts Fiber.current.blocking? # false
|
puts Fiber.current.blocking? # false
|
||||||
|
|
||||||
# May invoke `Fiber.scheduler&.io_wait`.
|
# May invoke `Fiber.scheduler&.io_wait`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user