Skip to content

Commit 756c093

Browse files
committed
Delete Ractor#close_outgoing
1 parent c4cb18d commit 756c093

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

core/ractor.rbs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff 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_outgoing -> true | false
430-
# -->
431-
# Closes the outgoing port and returns whether it was already closed. All
432-
# further attempts to Ractor.yield in the ractor, and #take from the ractor will
433-
# fail with Ractor::ClosedError.
434-
#
435-
# r = Ractor.new {sleep(500)}
436-
# r.close_outgoing #=> false
437-
# r.close_outgoing #=> true
438-
# r.take
439-
# # Ractor::ClosedError (The outgoing-port is already closed)
440-
#
441-
def close_outgoing: () -> bool
442-
443427
# <!--
444428
# rdoc-file=ractor.rb
445429
# - inspect()

test/stdlib/Ractor_test.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,6 @@ class RactorInstanceTest < Test::Unit::TestCase
9393

9494
testing "::Ractor"
9595

96-
def test_close_outgoing
97-
omit "Ractor#close_outgoing is not implemented" if RUBY_VERSION >= "3.5"
98-
99-
r = Ractor.new {}
100-
assert_send_type "() -> bool",
101-
r, :close_outgoing
102-
end
103-
10496
def test_inspect
10597
assert_send_type "() -> String",
10698
Ractor.current, :inspect

0 commit comments

Comments
 (0)