(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:
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-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
(error? x)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 |