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

sub

  • (sub p topic ch)
  • (sub p topic ch close?)
Subscribes a channel to a topic of a pub.
 By default the channel will be closed when the source closes,
but can be determined by the close? parameter.