Class: Powcloud::Insurance::Channel

Inherits:
Object
  • Object
show all
Defined in:
lib/powcloud/insurance/channel.rb

Defined Under Namespace

Classes: ProcChain

Constant Summary collapse

@@connection_closing =

Contains chain of connection close handlers. Each link should receive single block parameter and call it when link is done.

ProcChain.new

Class Method Summary collapse

Class Method Details

.close_connections(&blk) ⇒ Object

Starts closing connections asynchronously. Block given close_connections will be called last.



30
31
32
33
# File 'lib/powcloud/insurance/channel.rb', line 30

def close_connections(&blk)
  @@connection_closing << blk if blk
  @@connection_closing.call
end