Liking cljdoc? Tell your friends :D

promesa.protocols

A generic promise abstraction and related protocols.

A generic promise abstraction and related protocols.
raw docstring

ICancellableclj/s≠protocol

A cancellation abstraction.

A cancellation abstraction.

-cancelclj/s

(-cancel _)

-cancelled?clj/s

(-cancelled? _)
sourceraw docstring

IPromiseclj/s≠protocol

A basic future abstraction.

A basic future abstraction.

-mapclj/s

(-map _ callback)

Chain a promise.

Chain a promise.

-catchclj/s

(-catch _ callback)

Catch a error in a promise.

Catch a error in a promise.

-bindclj/s

(-bind _ callback)

Chain a promise.

Chain a promise.
sourceraw docstring

IPromiseFactoryclj/s≠protocol

A promise constructor abstraction.

A promise constructor abstraction.

-promiseclj/s

(-promise _)

Create a promise instance.

Create a promise instance.
sourceraw docstring

ISchedulerclj/s≠protocol

A generic abstraction for scheduler facilities.

A generic abstraction for scheduler facilities.

-scheduleclj/s

(-schedule _ ms func)

Schedule a function to be executed in future.

Schedule a function to be executed in future.
sourceraw docstring

IStateclj/s≠protocol

Additional state/introspection abstraction.

Additional state/introspection abstraction.

-extractclj/s

(-extract _)

Extract the current value.

Extract the current value.

-resolved?clj/s

(-resolved? _)

Returns true if a promise is resolved.

Returns true if a promise is resolved.

-pending?clj/s

(-pending? _)

Retutns true if a promise is pending.

Retutns true if a promise is pending.

-rejected?clj/s

(-rejected? _)

Returns true if a promise is rejected.

Returns true if a promise is rejected.
sourceraw docstring

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

× close