Module: Async::Container::Notify

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

Overview

Handles the details of several process readiness protocols.

Defined Under Namespace

Classes: Client, Console, Pipe, Server, Socket

Class Method Summary collapse

Class Method Details

.open!Object

Select the best available notification client. We cache the client on a per-process basis. Because that’s the relevant scope for process readiness protocols.



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

def self.open!
	@client ||= (
		Pipe.open! ||
		Socket.open! ||
		Console.open!
	)
end