Svatopluk Dedic created NETBEANS-5606:
-----------------------------------------

             Summary: Unify RequestProcessor, ScheduledFuture and 
CompletableFuture
                 Key: NETBEANS-5606
                 URL: https://issues.apache.org/jira/browse/NETBEANS-5606
             Project: NetBeans
          Issue Type: New Feature
          Components: platform - Other
            Reporter: Svatopluk Dedic


Our RequestProcessor is a *ScheduledExecutionService* and returns Task which 
*could* implement *CompletableFuture* or *CompletionStage* interfaces. That 
would allow to eliminate *TaskListeners* and chain calls using full power of 
*CompletableFuture* JDK API.

With TaskListeners, the caller must perform exception handling 
(CompletableFuture can execute one following exec path on success, another on 
failure), can't get a result (must be passed in arrays or member vars). 

Code in many areas could be quite streamlined with this enhancement.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to