Skip to content

Instantly share code, notes, and snippets.

@marzdgzmn
Created December 26, 2018 06:26
Show Gist options
  • Save marzdgzmn/dc6e8992a353ecf9ed2384b2cb987c3a to your computer and use it in GitHub Desktop.
Save marzdgzmn/dc6e8992a353ecf9ed2384b2cb987c3a to your computer and use it in GitHub Desktop.
module Foo
module Bar
LOG = Logger.new()
def self.run()
thread_pool = Concurrent::FixedThreadPool.new(10, max_queue:50)
until mirrors.empty?
mirror = mirror.shift
Concurrent::Future.execute(executor: thread_pool) { Sync.run() }
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment