Skip to content

Commit 22211b3

Browse files
committed
renamed RingBuffer to BlockingRingBuffer
1 parent 8d3b1ed commit 22211b3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/concurrent.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
require 'concurrent/channel/channel'
3737
require 'concurrent/channel/unbuffered_channel'
3838
require 'concurrent/channel/buffered_channel'
39-
require 'concurrent/channel/ring_buffer'
39+
require 'concurrent/channel/blocking_ring_buffer'
4040

4141
require 'concurrent/cached_thread_pool'
4242
require 'concurrent/fixed_thread_pool'

lib/concurrent/channel/ring_buffer.rb renamed to lib/concurrent/channel/blocking_ring_buffer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Concurrent
2-
class RingBuffer
2+
class BlockingRingBuffer
33

44
def initialize(capacity)
55
@buffer = Array.new(capacity)

spec/concurrent/channel/ring_buffer_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
module Concurrent
44

5-
describe RingBuffer do
5+
describe BlockingRingBuffer do
66

77
let(:capacity) { 3 }
8-
let(:buffer) { RingBuffer.new(capacity) }
8+
let(:buffer) { BlockingRingBuffer.new(capacity) }
99

1010
def fill_buffer
1111
capacity.times { buffer.put 3 }

0 commit comments

Comments
 (0)