Sha256: 6ed043ef190518e05b3f96c84f1100858740db8408b738711a48b1b9a17a2258

Contents?: true

Size: 339 Bytes

Versions: 5

Compression:

Stored size: 339 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require_relative '../../../../lib/async/container'

class MyController < Async::Container::Controller
	def setup(container)
		container.run(restart: false) do |instance|
			sleep(rand)
			
			instance.ready!
			
			sleep(rand)
		end
	end
end

controller = MyController.new
controller.run

Version data entries

5 entries across 5 versions & 1 rubygems

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