Changeset 33096 in project for wiki/eggref/4/forcible


Ignore:
Timestamp:
01/19/16 19:11:23 (4 years ago)
Author:
svnwiki
Message:

Anonymous wiki edit for IP [78.52.219.79]: Added timout API.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/forcible

    r33095 r33096  
    5151== API
    5252
     53<procedure>(timeout-condition? x) -> boolean</procedure>
     54
     55Test x to be a timeout condition object.
     56
    5357<procedure>(eager . vals) -> PROMISE</procedure>
    5458
     
    6367Returns a promise, a delayed evaluation of {{EXPRESSION}}.
    6468
     69<syntax>(delay/timeout TIMEOUT EXPRESSION) -> PROMISE</syntax>
     70
     71Same as {{delay EXPRESSION}}.  Promise may fail raising an object
     72for which {{timeout-condition?}} returns {{#t}}.
     73
    6574<syntax>(future EXPRESSION) -> PROMISE</syntax>
    6675
    6776Returns a promise, a delayed evaluation of {{EXPRESSION}}.  The
    6877evaluation of expression is started immediately in another thread.
    69 Uncaught exceptions of the evaluation thread are unwrwapped and raised
    70 as if the {{EXPRESSION}} was evaluated in the same thread.
     78{{PROMISE}} will cache exceptions returned by {{EXPRSSION}}.
     79
     80<syntax>(future/timeout TIMEOUT EXPRESSION) -> PROMISE</syntax>
     81
     82Variation of {{future}}.  The evaluation of {{EXPRESSION}} receives an
     83exceptions for which {{timeout-condition?}} holds after {{TIMEOUT}}.
    7184
    7285<syntax>(lazy-future EXPRESSION) -> PROMISE</syntax>
     
    126139[[http://askemos.org/chicken-eggs/forcible/forcible.tar.gz|forcible from askemos.org]]
    127140
     141=== Version History
     142
     1430.3: Added {{/timeout}}.
     144
     1450.2: Added optional {{THUNK}} to {{expectable}}.
     146
     1470.1: Initial version.
     148
    128149=== Authors
    129150
Note: See TracChangeset for help on using the changeset viewer.