Liking cljdoc? Tell your friends :D
All platforms.

jtk-dvlp.async.interop.promise


c->pclj/s

(c->p c)

Creates a promise and resolves it with the val of channel c taken by <!, excepted val is an instance of ExceptionInfo rejects the promise. Closes the channel after took val.

Creates a promise and resolves it with the val of channel `c`
taken by `<!`, excepted val is an instance of `ExceptionInfo` rejects the
promise. Closes the channel after took val.
sourceraw docstring

p->cclj/s

(p->c p)

Creates a promise-chan and put the val of resolved promise p or put an instance of ExceptionInfo if promise is rejected. Closes the channel after took val.

Creates a `promise-chan` and put the val of resolved promise `p`
or put an instance of `ExceptionInfo` if promise is rejected.
Closes the channel after took val.
sourceraw docstring

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

× close