Sha256: c5a880dff88f50fe7902b9c6ad20f1b4ad6e9613173b29ca7c75520c80b65637

Contents?: true

Size: 254 Bytes

Versions: 5

Compression:

Stored size: 254 Bytes

Contents

# frozen_string_literal: true

require 'kernel/sync'

class Worker
	def initialize(&block)
		
	end
end

Sync do
	count.times do
		worker = Worker.new(&block)
		
		status = worker.wait do |message|
			
		end
		
		status.success?
		status.failed?
	end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
async-container-0.16.5 examples/async.rb
async-container-0.16.4 examples/async.rb
async-container-0.16.3 examples/async.rb
async-container-0.16.2 examples/async.rb
async-container-0.16.1 examples/async.rb