Skip to content
instance method · added in Ruby 4.0

Ractor#join

() -> self
ractor.join → self

Waits for the termination of the Ractor. If the Ractor was aborted (terminated by an unhandled exception), the exception is raised in the current ractor.

Example
Ractor.new{}.join #=> ractor

Ractor.new{ raise "foo" }.join
#=> raises the exception "foo (RuntimeError)"

Ruby version changes

  1. 4.0