(add-url-parameter base-url key value)
Returns the current url with an additional parameter. If the parameter already exists, it is overridden.
Returns the current url with an additional parameter. If the parameter already exists, it is overridden.
(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 is a website building & hosting documentation for Clojure/Script libraries
× close