Add buffer for notification channels

This commit is contained in:
Omar Roth 2019-06-03 13:36:49 -05:00
parent d197497349
commit d6ec441c8e
No known key found for this signature in database
GPG key ID: B8254FB7EC3D37F2
2 changed files with 11 additions and 9 deletions

View file

@ -186,7 +186,7 @@ spawn do
end
end
connection_channel = Channel({Bool, Channel(PQ::Notification)}).new
connection_channel = Channel({Bool, Channel(PQ::Notification)}).new(32)
spawn do
connections = [] of Channel(PQ::Notification)