From 6395af95c4323c148ac78eef6aafc5dcfb050dc3 Mon Sep 17 00:00:00 2001 From: Ashutosh Gangwar Date: Fri, 26 Sep 2025 15:31:58 +0530 Subject: [PATCH 1/2] Update docstring for `flow-monitor/start-server` --- src/clojure/core/async/flow_monitor.clj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/clojure/core/async/flow_monitor.clj b/src/clojure/core/async/flow_monitor.clj index 3ffeb23..b80c04d 100644 --- a/src/clojure/core/async/flow_monitor.clj +++ b/src/clojure/core/async/flow_monitor.clj @@ -140,9 +140,9 @@ - :handlers (optional) - A map of custom Transit write handlers to use when serializing state data to send to the frontend. These handlers should follow the format expected by cognitect.transit/writer :handlers - - :filters (optional) - A map of {:pid state-filter-pred} which is applied to the state - for the associated pid. :default is also accepted and will be applied - to any proc that doesn't have a filter specified for the pid. + - :state-filters (optional) - A map of {:pid state-filter-pred} which is applied to the state + for the associated pid. :default is also accepted and will be applied + to any proc that doesn't have a filter specified for the pid. - :root (optional) - A vector of :pid keywords to designate the root procs in the event of circular flows. From 6ce68bd18ae96392c0233e76aa338cd76d468bb1 Mon Sep 17 00:00:00 2001 From: Ashutosh Gangwar Date: Fri, 26 Sep 2025 15:36:29 +0530 Subject: [PATCH 2/2] Update docstring for `flow-monitor/start-server` --- src/clojure/core/async/flow_monitor.clj | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/clojure/core/async/flow_monitor.clj b/src/clojure/core/async/flow_monitor.clj index b80c04d..2ba603c 100644 --- a/src/clojure/core/async/flow_monitor.clj +++ b/src/clojure/core/async/flow_monitor.clj @@ -142,7 +142,9 @@ expected by cognitect.transit/writer :handlers - :state-filters (optional) - A map of {:pid state-filter-pred} which is applied to the state for the associated pid. :default is also accepted and will be applied - to any proc that doesn't have a filter specified for the pid. + to any proc that doesn't have a filter specified for the pid. The + state-filter-pred is applied as (filter state-filter-pred pid-state). + The state-filter-pred isn't applied if pid-state is a string. - :root (optional) - A vector of :pid keywords to designate the root procs in the event of circular flows.