Skip to content

Commit cfb53ac

Browse files
committed
Action doc commit
1 parent 9e76160 commit cfb53ac

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

docs/clojure.core.async.flow.html

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,18 @@
114114
Optionally, a returned init state may contain the
115115
keys ::flow/in-ports and/or ::flow/out-ports. These should be maps
116116
of cid -> a core.async.channel. The cids must not conflict with the
117-
in/out ids. These channels will become part of the read/write set of
118-
the process, but are not otherwise visible/resolvable within the
119-
flow. Ports are a way to have data enter or exit the flow from
120-
outside. Use :transition to coordinate the lifecycle of these
117+
in/out ids. These channels will become part of the input/output set
118+
of the process, but are not otherwise visible/resolvable within the
119+
flow. Ports are a way to allow data to enter or exit the flow from
120+
outside of it. Use :transition to coordinate the lifecycle of these
121121
external channels.
122122

123+
Optionally, _any_ returned state, whether from :init, :transition
124+
or :transform, may contain the key ::flow/input-filter, a predicate
125+
of cid. Only inputs (including in-ports) satisfying the predicate
126+
will be part of the next channel read set. In the absence of this
127+
predicate all inputs are read.
128+
123129
:transition - optional, (state transition) -> state'
124130

125131
transition will be called when the process makes a state transition,

0 commit comments

Comments
 (0)