[前][次][番号順一覧][スレッド一覧]

ruby-changes:64351

From: Marc-Andre <ko1@a...>
Date: Sun, 20 Dec 2020 03:08:46 +0900 (JST)
Subject: [ruby-changes:64351] a273171ca8 (master): Tweak Ractor doc [doc] [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=a273171ca8

From a273171ca8848e85367628343ddd64ac6c0f70c1 Mon Sep 17 00:00:00 2001
From: Marc-Andre Lafortune <github@m...>
Date: Sat, 19 Dec 2020 13:08:24 -0500
Subject: Tweak Ractor doc [doc] [ci skip]


diff --git a/ractor.c b/ractor.c
index 0565827..180795b 100644
--- a/ractor.c
+++ b/ractor.c
@@ -1936,10 +1936,10 @@ ractor_moved_missing(int argc, VALUE *argv, VALUE self) https://github.com/ruby/ruby/blob/trunk/ractor.c#L1936
 /*
  *  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
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]