Documentation for promise-chan should mention that close! behavior
Description
A suggestion would be to add something like (which I can contribute if approved):
Consumers will block until either a value is placed in the channel or the
channel is closed. Once closed, always return the value. See chan for the semantics
of xform and ex-handler.
To avoid surprises when using it with functions that are waiting for nil to appear on the channel before proceeding (like into).
A suggestion would be to add something like (which I can contribute if approved):
Consumers will block until either a value is placed in the channel or the channel is closed. Once closed, always return the value. See chan for the semantics of xform and ex-handler.
To avoid surprises when using it with functions that are waiting for
nil
to appear on the channel before proceeding (likeinto
).