<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Clojure Q&amp;A - Recent questions tagged flow</title>
<link>https://ask.clojure.org/index.php/tag/flow</link>
<description></description>
<item>
<title>Typos in Flow guide</title>
<link>https://ask.clojure.org/index.php/14686/typos-in-flow-guide</link>
<description>&lt;p&gt;As reported by a &lt;a rel=&quot;nofollow&quot; href=&quot;https://news.ycombinator.com/item?id=44936309&quot;&gt;Hacker News user&lt;/a&gt;, there are typos in the &lt;a rel=&quot;nofollow&quot; href=&quot;https://clojure.github.io/core.async/flow-guide.html&quot;&gt;Flow Guide&lt;/a&gt;  :&lt;/p&gt;
&lt;p&gt;&quot;excepiton&quot; should be &quot;exception&quot;&lt;br&gt;
&quot;provded&quot; should be &quot;provided&quot;&lt;/p&gt;
&lt;p&gt;and also, it seems that in the transition section, &quot;The description arity takes the current state ...&quot; should be &quot;The transition arity takes the current state ...&quot;&lt;/p&gt;
</description>
<category>core.async</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/14686/typos-in-flow-guide</guid>
<pubDate>Mon, 18 Aug 2025 08:19:35 +0000</pubDate>
</item>
<item>
<title>Is core.async.flow available in ClojureScript?</title>
<link>https://ask.clojure.org/index.php/14633/is-core-async-flow-available-in-clojurescript</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I know it's early days for core.async.flow but I thought I would give it a try in one of my ClojureScript projects.&lt;/p&gt;
&lt;p&gt;I've got &lt;code&gt;{:mvn/version &quot;1.9.808-alpha1&quot;}&lt;/code&gt; in my deps.edn but I'm getting the following error when I try to access the namespace:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;No such namespace: clojure.core.async.flow, could not locate clojure/core/async/flow.cljs&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Thanks for your help.&lt;/p&gt;
</description>
<category>core.async</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/14633/is-core-async-flow-available-in-clojurescript</guid>
<pubDate>Thu, 17 Jul 2025 08:31:10 +0000</pubDate>
</item>
<item>
<title>How best to call long-running tasks from a core.async.flow process?</title>
<link>https://ask.clojure.org/index.php/14621/how-best-call-long-running-tasks-from-core-async-flow-process</link>
<description>&lt;p&gt;I'd like to write to a database as the final process in a core.async.flow flow. The db load can take several minutes. If I do this work directly in the :transform function's thread, flow-monitor can't ping that process for the duration of the load. But if I offload the work to a different thread and return from the :transform function, I can't as easily control back pressure from that process.&lt;/p&gt;
&lt;p&gt;The relevant process currently looks something like:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;(def db-loader
  (flow/map-&amp;gt;step
   {:describe (fn [] {:workload :io
                      :ins {:in &quot;Batched items&quot;}})
    :init     (fn [state] state)
    :transition (fn [state status] state)
    :transform (fn [state _ batch]
                 (t/log! &quot;DB Loader is loading a batch.&quot;)
                 (Thread/sleep 10000) ;; imagine this code writes to the db.
                 (t/log! &quot;DB Loader loaded a batch.&quot;)
                 [state])}))
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;A more complete code example is at &lt;a rel=&quot;nofollow&quot; href=&quot;https://gist.github.com/tomconnors/245fb69ed757b34502c8d57637db8de2&quot;&gt;https://gist.github.com/tomconnors/245fb69ed757b34502c8d57637db8de2&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Is there a better option for this process?&lt;/p&gt;
</description>
<category>Clojure</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/14621/how-best-call-long-running-tasks-from-core-async-flow-process</guid>
<pubDate>Wed, 09 Jul 2025 18:31:41 +0000</pubDate>
</item>
<item>
<title>what kind of systems could be made with clojure.async.flow?</title>
<link>https://ask.clojure.org/index.php/14526/what-kind-of-systems-could-be-made-with-clojure-async-flow</link>
<description>&lt;p&gt;Trying to capture mechanical essence of &lt;a rel=&quot;nofollow&quot; href=&quot;https://clojure.github.io/core.async/flow.html&quot;&gt;clojure.async.flow&lt;/a&gt; with basic terms instead of flow own terms i guess that clojure.async.flow allows to structure a system as a set of stateful functions running concurrently in the same jvm process and interacting with each other explicitly via channels.&lt;/p&gt;
&lt;p&gt;what kind of systems could be made with clojure.async.flow?&lt;/p&gt;
&lt;p&gt;it's definitely not naive service which handles API http requests, transforms it somehow and puts it into database.&lt;/p&gt;
</description>
<category>core.async</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/14526/what-kind-of-systems-could-be-made-with-clojure-async-flow</guid>
<pubDate>Tue, 29 Apr 2025 15:48:35 +0000</pubDate>
</item>
</channel>
</rss>