ClojureDocs

Nav

Namespaces

Take the 2026 State of Clojure Survey! Help shape the future of Clojure — open through Nov 30. Take Survey →
core.async
core.logic
data.csv
spec.alpha
tools.build
  • clojure
tools.deps

onto-chan!

  • (onto-chan! ch coll)
  • (onto-chan! ch coll close?)
Puts the contents of coll into the supplied channel.
 By default the channel will be closed after the items are copied,
but can be determined by the close? parameter.
 Returns a channel which will close after the items are copied.
 If accessing coll might block, use onto-chan!! instead