migrate to crystal 0.19

* select keyword hangs so Channel.select is used still
This commit is contained in:
Brian J. Cardiff 2016-09-04 20:11:50 -03:00
parent d3606831f3
commit 6745ea956f

View file

@ -131,7 +131,7 @@ module DB
timeout.start timeout.start
# TODO update to select keyword for crystal 0.19 # TODO update to select keyword for crystal 0.19
index, _ = Channel.select(@availability_channel.receive_op, timeout.select_action) index, _ = Channel.select(@availability_channel.receive_select_action, timeout.receive_select_action)
case index case index
when 0 when 0
timeout.cancel timeout.cancel
@ -168,8 +168,8 @@ module DB
@timeout_channel = Channel(Nil).new @timeout_channel = Channel(Nil).new
end end
def select_action def receive_select_action
@timeout_channel.receive_op @timeout_channel.receive_select_action
end end
def start def start