Crystal bindings update.
parent
a55e5639c4
commit
48c76930a4
|
@ -74,6 +74,12 @@ class IPC::Service
|
|||
at_exit { close }
|
||||
end
|
||||
|
||||
def initialize(name : String, &block : Proc(IPC::Event::Connection | IPC::Event::Disconnection | IPC::Event::Message, Nil))
|
||||
initialize name
|
||||
loop &block
|
||||
close
|
||||
end
|
||||
|
||||
def close
|
||||
return if @closed
|
||||
|
||||
|
|
Reference in New Issue