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))
|
(enqueue! queue (receive in-channel))
|
||||||
(loop))
|
(loop))
|
||||||
(select
|
(select
|
||||||
(list
|
(wrap (receive-rv in-channel)
|
||||||
(wrap (receive-rv in-channel)
|
(lambda (message)
|
||||||
(lambda (message)
|
(enqueue! queue message)
|
||||||
(enqueue! queue message)
|
(loop)))
|
||||||
(loop)))
|
(wrap (send-rv out-channel (queue-front queue))
|
||||||
(wrap (send-rv out-channel (queue-front queue))
|
(lambda (ignore)
|
||||||
(lambda (ignore)
|
(dequeue! queue)
|
||||||
(dequeue! queue)
|
(loop)))))))))
|
||||||
(loop))))))))))
|
|
||||||
(really-make-async-channel in-channel
|
(really-make-async-channel in-channel
|
||||||
out-channel)))
|
out-channel)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue