Clojure

printing promises should not block

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: Release 1.3
  • Component/s: None
  • Labels:
    None
  • Patch:
    Code
  • Approval:
    Ok

Description

Do not tackle the bigger "abstractions around visibility, delay, blocking" etc. issue. This is a minimal fix:

  • print code already deals with future as a special case
  • should special-case promise as well
  • make a definterface IPromiseImpl that you can switch on
    • right above promise in core.clj
    • has a method that gets you what you need to ask "has-value?"
  • in print code
    • if has value, show it, if not, show :not-delivered
  • make sure to fix print code in both core_print and pprint

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: