Method: RandomPort::Pool#initialize
- Defined in:
- lib/random-port/pool.rb
#initialize(sync: true, limit: 65_536, start: 1025) ⇒ Pool
Constructor.
41 42 43 44 45 46 47 |
# File 'lib/random-port/pool.rb', line 41 def initialize(sync: true, limit: 65_536, start: 1025) @ports = [] @sync = sync @monitor = Monitor.new @limit = limit @next = start end |