Obsolete
/
libipc-old
Archived
3
0
Fork 0

Crystal bindings update.

more_to_read
Luka Vandervelden 2018-10-11 18:31:48 +09:00
parent a55e5639c4
commit 48c76930a4
1 changed files with 6 additions and 0 deletions

View File

@ -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