diff --git a/README.md b/README.md index 08f5c30..2e190d6 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,9 @@ Then you can use the Swark utility functions: - `invalid-map?`: Minimalistic spec checker, returns logical true if the input does not respect the spec-map. Spec map is simply a map with predicates as vals. - `valid-map?`: Complement of invalid-map? - `memoir`: Like memoize, but with flushing. Flush the complete cache, or specific parts. + +> Note: these will be moved to their own namespace + - `atomic`: Returns a map with in- and output async channels to provide atomic interactions for side-effecting functionality. - `put!`: Puts an instruction on the atomic's input channel, blocks and returns the response. - `close!`: Closes the atomic's channels and stops the internal go-loop. diff --git a/src/swark/core.cljc b/src/swark/core.cljc index 7ebcb1d..63bd425 100644 --- a/src/swark/core.cljc +++ b/src/swark/core.cljc @@ -223,6 +223,7 @@ ;; Async stuff ;; TODO: Support channel transducers and ex-handler as well +;; TODO: Move this into its own namespace (defn atomic {:added "0.1.41" :arglist '([x])