Liking cljdoc? Tell your friends :D

jtk-dvlp.async


->promise-chanclj/s

(->promise-chan c)

Ensure given channel c to be a promise-chan via pipe it into a new promise-chan. See core.async/promise-chan for more infos.

Ensure given channel `c` to be a `promise-chan` via
`pipe` it into a new `promise-chan`. See `core.async/promise-chan`
for more infos.
sourceraw docstring

<cb!clj/smacro

(<cb! ?exp)

Like <e! for callback based functions via cb->c convertion.

Usage in combination with go*.

Like `<e!` for callback based functions via `cb->c` convertion.

Usage in combination with `go*`.
sourceraw docstring

<e!clj/smacro

(<e! ?exp)

Like <! but tests taken val instance of ExceptionInfo, if so throws it.

Usage in combination with go*.

Like `<!` but tests taken val instance of `ExceptionInfo`, if so throws it.

Usage in combination with `go*`.
sourceraw docstring

<p!clj/smacro

(<p! ?exp)

Like <e! for promise via p->c convertion.

Usage in combination with go*.

Like `<e!` for promise via `p->c` convertion.

Usage in combination with `go*`.
sourceraw docstring

go*clj/smacro

(go* & body)

Like go but carries thrown ExceptionInfo as result.

Usage in combination with <e!, <p! and <cb!.

Like `go` but carries thrown `ExceptionInfo` as result.

Usage in combination with `<e!`, `<p!` and `<cb!`.
sourceraw docstring

mapclj/s

(map f chs)

Like map but carries thrown ExceptionInfo as result.

Usage in combination with <e!.

Like `map` but carries thrown `ExceptionInfo` as result.

Usage in combination with `<e!`.
sourceraw docstring

promise-chanclj/s

(promise-chan)
(promise-chan f)

Creates an promise like channel, see core.async/promise-chan.

Given function f can be used to fill the promise. f will be called with one arg functions resolve and reject to resolve or reject the created promise. Rejection value will will be used as ex-info cause.

Creates an promise like channel, see `core.async/promise-chan`.

Given function `f` can be used to fill the promise.
`f` will be called with one arg functions `resolve` and `reject`
to resolve or reject the created promise. Rejection value will
will be used as `ex-info` `cause`.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close