Skip to content

Commit 37a9a37

Browse files
committed
Improve misleading close! doc
1 parent 9061a25 commit 37a9a37

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/manifold/stream.clj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,11 @@
196196
`(.isSynchronous ~(with-meta x {:tag "manifold.stream.core.IEventStream"})))
197197

198198
(definline close!
199-
"Closes a source or sink, so that it can't emit or accept any more messages."
199+
"Closes a sink, so that it can't emit any more messages.
200+
201+
Note that 'take's on associated sources will still work until
202+
the sink is exhausted."
203+
200204
[sink]
201205
`(.close ~(with-meta sink {:tag "manifold.stream.core.IEventStream"})))
202206

0 commit comments

Comments
 (0)