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)
Run a task and return a promise.
Run a task and return a promise.
(-submit! _ task)
Submit a task and return a promise.
Submit a task and return a promise.
A basic promise abstraction.
A basic promise abstraction.
(-bind _ f)
(-bind _ f executor)
Chain a computation to be executed in a microtask.
Chain a computation to be executed in a microtask.
(-catch _ f)
Catch a error in a promise.
Catch a error in a promise.
(-finally _ f)
(-finally _ f executor)
Runs side-effectful code after completion or rejection, returns the original promise.
Runs side-effectful code after completion or rejection, returns the original promise.
(-handle _ f)
(-handle _ f executor)
Chain a computation when promise completes either normally or exceptionally.
Chain a computation when promise completes either normally or exceptionally.
(-map _ f)
(-map _ f executor)
Chain a computation to be executed in a microtask.
Chain a computation to be executed in a microtask.
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.
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 is a website building & hosting documentation for Clojure/Script libraries
× close