зеркало из https://github.com/github/ruby.git
Tweak Ractor doc [doc] [ci skip]
This commit is contained in:
Родитель
1f565ac6d9
Коммит
a273171ca8
8
ractor.c
8
ractor.c
|
@ -1936,10 +1936,10 @@ ractor_moved_missing(int argc, VALUE *argv, VALUE self)
|
||||||
/*
|
/*
|
||||||
* Document-class: Ractor::ClosedError
|
* Document-class: Ractor::ClosedError
|
||||||
*
|
*
|
||||||
* Raised when an attempt is made to take something from the Ractor's outgoing port,
|
* Raised when an attempt is made to send a message to a closed port,
|
||||||
* but it is closed with Ractor#close_outgoing, or to send something to Ractor's
|
* or to retrieve a message from a closed and empty port.
|
||||||
* incoming port, and it is closed with Ractor#close_incoming, or an attempt to
|
* Ports may be closed explicitly with Ractor#close_outgoing/close_incoming
|
||||||
* send/take something with ractor which was already terminated.
|
* and are closed implicitly when a Ractor terminates.
|
||||||
*
|
*
|
||||||
* r = Ractor.new { sleep(500) }
|
* r = Ractor.new { sleep(500) }
|
||||||
* r.close_outgoing
|
* r.close_outgoing
|
||||||
|
|
Загрузка…
Ссылка в новой задаче