(->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.
(<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*`.
(<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*`.
(<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*`.
(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!`.
(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!`.
(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`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close