Liking cljdoc? Tell your friends :D

promesa.protocols

A generic promise abstraction and related protocols.

A generic promise abstraction and related protocols.
raw docstring

IAwaitablecljprotocol

-await!clj

(-await! _)
(-await! _ duration)

block current thread await termination

block current thread await termination
source

IBufferclj/sprotocol

-full?clj/s

(-full? _)

-offer!clj/s

(-offer! _ val)

-poll!clj/s

(-poll! _)

-sizeclj/s

(-size _)
source

ICancellableclj/sprotocol

A cancellation abstraction.

A cancellation abstraction.

-cancel!clj/s

(-cancel! _)

-cancelled?clj/s

(-cancelled? _)
sourceraw docstring

IChannelInternalclj/sprotocol

-cleanup!clj/s

(-cleanup! _)
source

IChannelMultiplexerclj/sprotocol

-tap!clj/s

(-tap! _ ch close?)

-untap!clj/s

(-untap! _ ch)
source

ICloseableclj/sprotocol

-close!clj/s

(-close! _)

-closed?clj/s

(-closed? _)
source

ICompletableclj/sprotocol

-reject!clj/s

(-reject! _ e)

Deliver an error to empty promise.

Deliver an error to empty promise.

-resolve!clj/s

(-resolve! _ v)

Deliver a value to empty promise.

Deliver a value to empty promise.
source

IExecutorclj/sprotocol

-run!clj/s

(-run! _ task)

Submit a task and return a promise.

Submit a task and return a promise.

-submit!clj/s

(-submit! _ task)

Submit a task and return a promise.

Submit a task and return a promise.
source

IHandlerclj/sprotocol

-active?clj/s

(-active? _)

-blockable?clj/s

(-blockable? _)

-commit!clj/s

(-commit! _)
source

ILockclj/sprotocol

An experimental lock protocol, used internally; no public api

An experimental lock protocol, used internally; no public api

-lock!clj/s

(-lock! _)

-unlock!clj/s

(-unlock! _)
sourceraw docstring

IPromiseclj/sprotocol

A promise abstraction.

A promise abstraction.

-bindclj/s

(-bind _ f)
(-bind _ f executor)

Apply function to a computation and flatten.

Apply function to a computation and flatten.

-catchclj/s

(-catch _ f)
(-catch _ f executor)

Apply function to a failed computation. and flatten if promise found.

Apply function to a failed computation. and flatten if promise found.

-finallyclj/s

(-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.

-handleclj/s

(-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.

-mapclj/s

(-map _ f)
(-map _ f executor)

Apply function to a computation

Apply function to a computation
sourceraw docstring

IPromiseFactoryclj/sprotocol

A promise constructor abstraction.

A promise constructor abstraction.

-promiseclj/s

(-promise _)

Create a promise instance from other types

Create a promise instance from other types
sourceraw docstring

IReadChannelclj/sprotocol

-take!clj/s

(-take! _ handler)
source

ISchedulerclj/sprotocol

A generic abstraction for scheduler facilities.

A generic abstraction for scheduler facilities.

-schedule!clj/s

(-schedule! _ ms func)

Schedule a function to be executed in future.

Schedule a function to be executed in future.
sourceraw docstring

ISemaphoreclj/sprotocol

An experimental semaphore protocol, used internally; no public api

An experimental semaphore protocol, used internally; no public api

-acquire!clj/s

(-acquire! _)
(-acquire! _ n)

Acquire 1 or N permits

Acquire 1 or N permits

-release!clj/s

(-release! _)
(-release! _ n)

Release 1 or N permits

Release 1 or N permits

-try-acquire!clj/s

(-try-acquire! _)
(-try-acquire! _ n)

Try acquire 1 or n permits; not blocking operation

Try acquire 1 or n permits; not blocking operation
sourceraw docstring

IStatecljprotocol

Additional state/introspection abstraction.

Additional state/introspection abstraction.

-extractclj

(-extract _)

Extract the current value.

Extract the current value.

-pending?clj

(-pending? _)

Retutns true if a promise is pending.

Retutns true if a promise is pending.

-rejected?clj

(-rejected? _)

Returns true if a promise is rejected.

Returns true if a promise is rejected.

-resolved?clj

(-resolved? _)

Returns true if a promise is resolved.

Returns true if a promise is resolved.
sourceraw docstring

IWriteChannelclj/sprotocol

-put!clj/s

(-put! _ val handler)
source

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

× close