Skip to main content

Futures & Promises

10
  • deliver

    Delivers the supplied value to the promise, releasing any pending derefs. A subsequent call to deliver on a promise wi...

  • deref

    Also reader macro: @ref/@agent/@var/@atom/@delay/@future/@promise. Within a transaction, returns the in-transaction-va...

  • future

    Takes a body of expressions and yields a future object that will invoke the body in another thread, and will cache the...

  • future-call

    Takes a function of no args and yields a future object that will invoke the function in another thread, and will cache...

  • future-cancel

    Cancels the future, if possible.

  • future-cancelled?

    Returns true if future f is cancelled

  • future-done?

    Returns true if future f is done

  • future?

    Returns true if x is a future

  • promise

    Returns a promise object that can be read with deref/@, and set, once only, with deliver. Calls to deref/@ prior to de...

  • realized?

    Returns true if a value has been produced for a promise, delay, future or lazy sequence.