class FootTraffic::ThreadPool

Public Class Methods

new() click to toggle source
# File lib/foot_traffic/session.rb, line 6
def initialize
  @threads = []
end

Public Instance Methods

<<(thread) click to toggle source
# File lib/foot_traffic/session.rb, line 10
def <<(thread)
  @threads << thread
end
wait() click to toggle source
# File lib/foot_traffic/session.rb, line 14
def wait
  @threads.map(&:join)
end