chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] channel egg: hang on closed channel?


From: Kristian Lein-Mathisen
Subject: [Chicken-users] channel egg: hang on closed channel?
Date: Wed, 26 Feb 2014 17:28:21 +0100


Hi folks!

I'm just starting to look at the channel egg and its nifty API. I've encoutered some behaviour that I think is a little odd:

(let ((c (make-channel)))
  (close-channel c)
  (channel-receive c))

The code snippet above hangs forever. I would expect channel-receive to return immediately with its default thunk (#f).

Is this intentional?
K.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]