SELECT actually gets an arbitrary number of rendezvous as its argument---not a list of rendezvous. Fix this.
This commit is contained in:
parent
8cc870c126
commit
6fe00e8593
|
@ -16,15 +16,14 @@
|
|||
(enqueue! queue (receive in-channel))
|
||||
(loop))
|
||||
(select
|
||||
(list
|
||||
(wrap (receive-rv in-channel)
|
||||
(lambda (message)
|
||||
(enqueue! queue message)
|
||||
(loop)))
|
||||
(wrap (send-rv out-channel (queue-front queue))
|
||||
(lambda (ignore)
|
||||
(dequeue! queue)
|
||||
(loop))))))))))
|
||||
(wrap (receive-rv in-channel)
|
||||
(lambda (message)
|
||||
(enqueue! queue message)
|
||||
(loop)))
|
||||
(wrap (send-rv out-channel (queue-front queue))
|
||||
(lambda (ignore)
|
||||
(dequeue! queue)
|
||||
(loop)))))))))
|
||||
(really-make-async-channel in-channel
|
||||
out-channel)))
|
||||
|
||||
|
|
Loading…
Reference in New Issue