summaryrefslogtreecommitdiff
path: root/ractor.c
diff options
context:
space:
mode:
authorMarc-Andre Lafortune <github@marc-andre.ca>2020-12-19 13:08:24 -0500
committerMarc-Andre Lafortune <github@marc-andre.ca>2020-12-19 13:08:24 -0500
commita273171ca8848e85367628343ddd64ac6c0f70c1 (patch)
tree3265d0a5bd2f9e2927dafe1e28d3a3d0e9f22cd5 /ractor.c
parent1f565ac6d98e902f51a0ea7b8b4aa85693deea6e (diff)
Tweak Ractor doc [doc] [ci skip]
Diffstat (limited to 'ractor.c')
-rw-r--r--ractor.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ractor.c b/ractor.c
index 0565827a5f..180795b9c1 100644
--- a/ractor.c
+++ b/ractor.c
@@ -1936,10 +1936,10 @@ ractor_moved_missing(int argc, VALUE *argv, VALUE self)
/*
* Document-class: Ractor::ClosedError
*
- * Raised when an attempt is made to take something from the Ractor's outgoing port,
- * but it is closed with Ractor#close_outgoing, or to send something to Ractor's
- * incoming port, and it is closed with Ractor#close_incoming, or an attempt to
- * send/take something with ractor which was already terminated.
+ * Raised when an attempt is made to send a message to a closed port,
+ * or to retrieve a message from a closed and empty port.
+ * Ports may be closed explicitly with Ractor#close_outgoing/close_incoming
+ * and are closed implicitly when a Ractor terminates.
*
* r = Ractor.new { sleep(500) }
* r.close_outgoing