Module: Async::Container::Notify

Defined in:
lib/async/container/notify.rb,
lib/async/container/notify/pipe.rb,
lib/async/container/notify/client.rb,
lib/async/container/notify/server.rb,
lib/async/container/notify/socket.rb,
lib/async/container/notify/console.rb

Defined Under Namespace

Classes: Client, Console, Pipe, Server, Socket

Constant Summary collapse

@@client =

We cache the client on a per-process basis. Because that's the relevant scope for process readiness protocols.

nil

Class Method Summary collapse

Class Method Details

.open!Object



34
35
36
37
38
39
40
41
# File 'lib/async/container/notify.rb', line 34

def self.open!
	# Select the best available client:
	@@client ||= (
		Pipe.open! ||
		Socket.open! ||
		Console.open!
	)
end