Skip to content

clojure.core/promise

View this page on ClojureDocs

Type: function Added: Clojure 1.1 Examples: 3 Runnable: 0
([])

Returns a promise object that can be read with deref/@, and set, once only, with deliver. Calls to deref/@ prior to delivery will block, unless the variant of deref with timeout is used. All subsequent derefs will return the same delivered value without blocking. See also - realized?.

Examples

by gstamp on . May have evaluation errors.
by neotyk on . May have evaluation errors.
by JoshAaronJones on . May have evaluation errors.

See also


Content from the matching ClojureDocs page, with authors credited on each contribution.