Sha256: 707203f6018576576f389f06ef7e6e195cffa32af896f7d068e536e235759529

Contents?: true

Size: 346 Bytes

Versions: 4

Compression:

Stored size: 346 Bytes

Contents

# frozen_string_literal: true

require 'thread'

module AwsCftTools
  module Runbooks
    class Deploy
      ##
      # module with methods to manage threading
      #
      module Threading
        private

        def create_threads(list, &_block)
          list.map { |item| Thread.new { yield item } }
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
aws-cft-tools-0.1.4 lib/aws_cft_tools/runbooks/deploy/threading.rb
aws-cft-tools-0.1.3 lib/aws_cft_tools/runbooks/deploy/threading.rb
aws-cft-tools-0.1.2 lib/aws_cft_tools/runbooks/deploy/threading.rb
aws-cft-tools-0.1.1 lib/aws_cft_tools/runbooks/deploy/threading.rb