Skip to content
class method

Ractor.receive

() -> untyped
Ractor.receive → obj

Receives a message from the current ractor’s default port.

Ruby version changes

  1. 4.0
See also #receive .new .recv .make_shareable also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0