Commit e6f9eed

mo khan <mo.khan@gmail.com>
2020-05-15 21:03:52
Create a single instance of a thread pool
1 parent fcc91f6
Changed files (1)
lib/spandx.rb
@@ -41,6 +41,10 @@ module Spandx
       @logger ||= Logger.new('/dev/null')
     end
 
+    def thread_pool
+      @thread_pool ||= ::Spandx::Core::ThreadPool.new
+    end
+
     def git
       @git ||= {
         cache: ::Spandx::Core::Git.new(url: 'https://github.com/spandx/cache.git'),