Skip to content

Commit 4043e35

Browse files
committed
Removed channel at_exit handler.
1 parent b03c49f commit 4043e35

File tree

1 file changed

+0
-7
lines changed
  • lib/concurrent/channel/buffer

1 file changed

+0
-7
lines changed

lib/concurrent/channel/buffer/base.rb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
require 'concurrent/synchronization/lockable_object'
2-
require 'concurrent/utility/at_exit'
32

43
module Concurrent
54
class Channel
@@ -33,7 +32,6 @@ def initialize(*args)
3332
@capacity = 0
3433
@buffer = nil
3534
ns_initialize(*args)
36-
AtExit.add(self) { terminate_at_exit }
3735
end
3836
end
3937

@@ -234,11 +232,6 @@ def ns_full?
234232
def ns_closed?
235233
@closed
236234
end
237-
238-
# @!visibility private
239-
def terminate_at_exit
240-
synchronize { self.closed = true }
241-
end
242235
end
243236
end
244237
end

0 commit comments

Comments
 (0)