Method: OpenC3::TimelineManager#generate_thread_pool
- Defined in:
- lib/openc3/microservices/timeline_microservice.rb
#generate_thread_pool ⇒ Object
202 203 204 205 206 207 208 209 |
# File 'lib/openc3/microservices/timeline_microservice.rb', line 202 def generate_thread_pool thread_pool = [] @worker_count.times { worker = TimelineWorker.new(name: @timeline_name, logger: @logger, scope: @scope, queue: @queue) thread_pool << Thread.new { worker.run } } return thread_pool end |