<< Back to previous view

[CLJ-680] printing promises should not block Created: 26/Nov/10  Updated: 08/Dec/10  Resolved: 08/Dec/10

Status: Closed
Project: Clojure
Component/s: None
Affects Version/s: None
Fix Version/s: Release 1.3

Type: Enhancement Priority: Major
Reporter: Stuart Halloway Assignee: Aaron Bedra
Resolution: Completed Votes: 0
Labels: None

Attachments: Text File 0680_nonblocking_promise_printing.patch    
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

Generated at Fri Nov 21 18:06:12 CST 2014 using JIRA 4.4#649-r158309.