Created
December 26, 2018 06:26
-
-
Save marzdgzmn/dc6e8992a353ecf9ed2384b2cb987c3a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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