Liking cljdoc? Tell your friends :D

telsos.lib.call


AsyncCallerclj/sprotocol

async-callclj/s

(async-call this f args args-validator result-validator)

Asynchronously calls procedure f with the given args. f - procedure identifier (keyword, string, etc.) args - map (keys = formal parameter names) args-validator - (fn [args]) args validator, nil = no validation result-validator - (fn [result]) result validator, nil = no validation Returns a core.async channel. The channel will receive:

  • the result (any value) on success
  • Throwable/js.Error on failure (validation, dispatch, or transport)
Asynchronously calls procedure f with the given args.
f                - procedure identifier (keyword, string, etc.)
args             - map (keys = formal parameter names)
args-validator   - (fn [args]) args validator, nil = no validation
result-validator - (fn [result]) result validator, nil = no validation
Returns a core.async channel. The channel will receive:
- the result (any value) on success
- Throwable/js.Error on failure (validation, dispatch, or transport)

create-async-callerclj/s

(create-async-caller dispatch-fn)

Creates an AsyncCaller backed by dispatch-fn. dispatch-fn: (fn [f args]) -> core.async channel with result

Creates an AsyncCaller backed by dispatch-fn.
dispatch-fn: (fn [f args]) -> core.async channel with result
raw docstring

error?clj/s

(error? x)

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close