Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
verberktstan committed Feb 28, 2024
1 parent 9596217 commit 435a401
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions src/swark/core.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 435a401

Please sign in to comment.