File tree Expand file tree Collapse file tree 2 files changed +0
-24
lines changed
Expand file tree Collapse file tree 2 files changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -424,22 +424,6 @@ class Ractor
424424 %a{deprecated: Use Ractor.[]= instead}
425425 def []= : [T] (interned sym, T val) -> T
426426
427- # <!--
428- # rdoc-file=ractor.rb
429- # - ractor.close_incoming -> true | false
430- # -->
431- # Closes the incoming port and returns whether it was already closed. All
432- # further attempts to Ractor.receive in the ractor, and #send to the ractor will
433- # fail with Ractor::ClosedError.
434- #
435- # r = Ractor.new {sleep(500)}
436- # r.close_incoming #=> false
437- # r.close_incoming #=> true
438- # r.send('test')
439- # # Ractor::ClosedError (The incoming-port is already closed)
440- #
441- def close_incoming : () -> bool
442-
443427 # <!--
444428 # rdoc-file=ractor.rb
445429 # - ractor.close_outgoing -> true | false
Original file line number Diff line number Diff line change @@ -93,14 +93,6 @@ class RactorInstanceTest < Test::Unit::TestCase
9393
9494 testing "::Ractor"
9595
96- def test_close_incoming
97- omit "Ractor#close_incoming is not implemented" if RUBY_VERSION >= "3.5"
98-
99- r = Ractor . new { }
100- assert_send_type "() -> bool" ,
101- r , :close_incoming
102- end
103-
10496 def test_close_outgoing
10597 omit "Ractor#close_outgoing is not implemented" if RUBY_VERSION >= "3.5"
10698
You can’t perform that action at this time.
0 commit comments