A generic promise abstraction and related protocols.
A generic promise abstraction and related protocols.
(-await! it)
(-await! it duration)
block current thread await termination
block current thread await termination
(-full? it)
(-offer! it val)
(-poll! it)
(-size it)
A cancellation abstraction.
A cancellation abstraction.
(-cancel! it)
(-cancelled? it)
(-reject! it e)
Deliver an error to empty promise.
Deliver an error to empty promise.
(-resolve! it v)
Deliver a value to empty promise.
Deliver a value to empty promise.
(-exec! it task)
Submit a task and return nil
Submit a task and return nil
(-run! it task)
Submit a task and return a promise.
Submit a task and return a promise.
(-submit! it task)
Submit a task and return a promise.
Submit a task and return a promise.
(-active? it)
(-blockable? it)
(-commit! it)
An experimental lock protocol, used internally; no public api
An experimental lock protocol, used internally; no public api
(-lock! it)
(-unlock! it)
(-fmap it f)
(-fmap it f executor)
Apply function to a computation
Apply function to a computation
(-fnly it f)
(-fnly it f executor)
Apply function to a computation independently if is failed or successful; the return value is ignored.
Apply function to a computation independently if is failed or successful; the return value is ignored.
(-hmap it f)
(-hmap it f executor)
Apply function to a computation independently if is failed or successful.
Apply function to a computation independently if is failed or successful.
(-mcat it f)
(-mcat it f executor)
Apply function to a computation and flatten 1 level
Apply function to a computation and flatten 1 level
(-merr it f)
(-merr it f executor)
Apply function to a failed computation and flatten 1 level
Apply function to a failed computation and flatten 1 level
(-then it f)
(-then it f executor)
Apply function to a computation and flatten multiple levels
Apply function to a computation and flatten multiple levels
A promise constructor abstraction.
A promise constructor abstraction.
(-promise it)
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! it 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! it)
(-acquire! it n)
Acquire 1 or N permits
Acquire 1 or N permits
(-release! it)
(-release! it n)
Release 1 or N permits
Release 1 or N permits
(-try-acquire! it)
(-try-acquire! it n)
(-try-acquire! it n t)
Try acquire n or n permits, non-blocking or optional timeout
Try acquire n or n permits, non-blocking or optional timeout
Additional state/introspection abstraction.
Additional state/introspection abstraction.
(-extract it)
(-extract it default)
Extract the current value.
Extract the current value.
(-pending? it)
Retutns true if a promise is pending.
Retutns true if a promise is pending.
(-rejected? it)
Returns true if a promise is rejected.
Returns true if a promise is rejected.
(-resolved? it)
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