We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
blocking_operation_wait
1 parent 7b2075f commit a49c5deCopy full SHA for a49c5de
test/fiber/scheduler.rb
@@ -340,15 +340,15 @@ def address_resolve(hostname)
340
end.value
341
end
342
343
- # def blocking_operation_wait(work)
344
- # thread = Thread.new(&work)
+ def blocking_operation_wait(work)
+ thread = Thread.new(&work)
345
346
- # thread.join
+ thread.join
347
348
- # thread = nil
349
- # ensure
350
- # thread&.kill
351
- # end
+ thread = nil
+ ensure
+ thread&.kill
+ end
352
353
354
# This scheduler class implements `io_read` and `io_write` hooks which require
0 commit comments