Project

General

Profile

Actions

Misc #20272

open

Ambiguity around Ractor message sending FIFO semantics

Added by forthoney (Seong-Heon Jung) 9 months ago. Updated 7 months ago.

Status:
Open
Assignee:
-
[ruby-core:116802]

Description

The docs should explicitly state the semantics/properties of Ractor message, especially when it comes to FIFO.
For example, assume I have two Ractors, Ractor A and Ractor B. Ractor A sends two messages "hello" and "world" in this order to Ractor B.
If I call Ractor.receive on Ractor B, am I guaranteed to see "hello" and then "world" or is it possible the messages are delivered out of order?

Actions

Also available in: Atom PDF

Like0
Like0