[ 
https://issues.apache.org/jira/browse/DEFT-195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Roger Schildmeijer updated DEFT-195:
------------------------------------

    Description: 
Inspired by twisteds Deferreds 
(http://twistedmatrix.com/documents/current/core/howto/defer.html). 

Deferreds represents the result of an asynchronous operations. (At first they 
look very similar to java.util.concurrent.Future, but they differ somewhat).

You can.. 
attach callbacks and errbacks to a Deferred. 
chain callbacks
take care of error handling in a more "deterministic" way

Drawbacks:
complex abstraction (doesn't fit that well into the current simple architecture)
had to add a return type to AsyncResult
"type safety" issues (hint: return type of AsyncResult.[onSuccess, onFailure]) 

  was:
Inspired by twisteds Deferreds. 

Deferreds represents the result of an asynchronous operations. (At first they 
look very similar to java.util.concurrent.Future, but they differ somewhat).

You can.. 
attach callbacks and errbacks to a Deferred. 
chain callbacks
take care of error handling in a more "deterministic" way

Drawbacks:
complex abstraction (doesn't fit that well into the current simple architecture)
had to add a return type to AsyncResult
"type safety" issues (hint: return type of AsyncResult.[onSuccess, onFailure]) 

    
> Deferred result
> ---------------
>
>                 Key: DEFT-195
>                 URL: https://issues.apache.org/jira/browse/DEFT-195
>             Project: Deft
>          Issue Type: Brainstorming
>            Reporter: Roger Schildmeijer
>            Priority: Minor
>         Attachments: Deferred.java
>
>
> Inspired by twisteds Deferreds 
> (http://twistedmatrix.com/documents/current/core/howto/defer.html). 
> Deferreds represents the result of an asynchronous operations. (At first they 
> look very similar to java.util.concurrent.Future, but they differ somewhat).
> You can.. 
> attach callbacks and errbacks to a Deferred. 
> chain callbacks
> take care of error handling in a more "deterministic" way
> Drawbacks:
> complex abstraction (doesn't fit that well into the current simple 
> architecture)
> had to add a return type to AsyncResult
> "type safety" issues (hint: return type of AsyncResult.[onSuccess, 
> onFailure]) 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to