A generic promise abstraction and related protocols.
A generic promise abstraction and related protocols.
A cancellation abstraction.
A cancellation abstraction.
(-cancel! _)(-cancelled? _)(-reject! _ e)Deliver an error to empty promise.
Deliver an error to empty promise.
(-resolve! _ v)Deliver a value to empty promise.
Deliver a value to empty promise.
(-run! _ task)Submit a task and return a promise.
Submit a task and return a promise.
(-submit! _ task)Submit a task and return a promise.
Submit a task and return a promise.
An experimental lock protocol, used internally; no public api
An experimental lock protocol, used internally; no public api
(-lock! _)(-unlock! _)A promise abstraction.
A promise abstraction.
(-bind _ f)(-bind _ f executor)Apply function to a computation and flatten.
Apply function to a computation and flatten.
(-finally _ f)(-finally _ f executor)Apply function to a computation identpendently if is failed or successful; the return value is ignored.
Apply function to a computation identpendently if is failed or successful; the return value is ignored.
(-handle _ f)(-handle _ f executor)Apply function to a computation identpendently if is failed or successful and flatten if promise found.
Apply function to a computation identpendently if is failed or successful and flatten if promise found.
(-map _ f)(-map _ f executor)Apply function to a computation
Apply function to a computation
(-mapErr _ f)(-mapErr _ f executor)Apply function to a failed computation.
Apply function to a failed computation.
(-then _ f)(-then _ f executor)Apply function to a computation and flatten if promise found.
Apply function to a computation and flatten if promise found.
(-thenErr _ f)(-thenErr _ f executor)Apply function to a failed computation. and flatten if promise found.
Apply function to a failed computation. and flatten if promise found.
A promise constructor abstraction.
A promise constructor abstraction.
(-promise _)Create a promise instance from other types
Create a promise instance from other types
A generic abstraction for scheduler facilities.
A generic abstraction for scheduler facilities.
(-schedule! _ ms func)Schedule a function to be executed in future.
Schedule a function to be executed in future.
An experimental semaphore protocol, used internally; no public api
An experimental semaphore protocol, used internally; no public api
(-acquire! _)(-acquire! _ n)Acquire 1 or N permits
Acquire 1 or N permits
(-release! _)(-release! _ n)Release 1 or N permits
Release 1 or N permits
(-try-acquire! _)(-try-acquire! _ n)Try acquire 1 or n permits; not blocking operation
Try acquire 1 or n permits; not blocking operation
Additional state/introspection abstraction.
Additional state/introspection abstraction.
(-extract _)Extract the current value.
Extract the current value.
(-pending? _)Retutns true if a promise is pending.
Retutns true if a promise is pending.
(-rejected? _)Returns true if a promise is rejected.
Returns true if a promise is rejected.
(-resolved? _)Returns true if a promise is resolved.
Returns true if a promise is resolved.
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 |