Skip to content

Instantly share code, notes, and snippets.

View customcommander's full-sized avatar
🇺🇦
I stand with Ukraine

Julien Gonzalez customcommander

🇺🇦
I stand with Ukraine
  • London, UK
View GitHub Profile
@tomconnors
tomconnors / user.clj
Created July 9, 2025 18:23
core.async.flow examples
;; There are some patterns with c.a.flow that weren't immediately obvious to me so I made this gist to
;; figure them out.
;; Those patterns are:
;; - backpressure across processes
;; - long-running tasks
;; - getting inputs for the first process in the flow
(require '[clojure.core.async :as async]
'[clojure.core.async.flow :as flow]
'[clojure.pprint :as pp]