Archived
3
0

Crystal bindings update.

This commit is contained in:
Luka Vandervelden 2018-10-11 18:31:48 +09:00
parent a55e5639c4
commit 48c76930a4

View File

@ -74,6 +74,12 @@ class IPC::Service
at_exit { close } at_exit { close }
end 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 def close
return if @closed return if @closed