(memoize-async f)Returns a memoized version of f.
If f succeeds (returns [:ok & args]), on subsequent calls it will return the cached results.
f must return a channel.
Returns a memoized version of f. If `f` succeeds (returns [:ok & args]), on subsequent calls it will return the cached results. `f` must return a channel.
(runonce-async f)Returns a function that will run f only once.
If f succeeds (returns [:ok & args]), on subsequent calls it will return [:ok].
f must return a channel.
Returns a function that will run `f` only once. If `f` succeeds (returns [:ok & args]), on subsequent calls it will return [:ok]. `f` must return a channel.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |