Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

instance method

Ractor#close

ractor.close → true | false

Closes the default port. Closing a port is allowed only by the ractor which created the port. Therefore, the receiver must be the current ractor.

See also #[]= #default_port #[] #inspect also in 4.0