You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Svatopluk Dedic (Jira)" <ji...@apache.org> on 2021/04/20 12:02:00 UTC

[jira] [Created] (NETBEANS-5606) Unify RequestProcessor, ScheduledFuture and CompletableFuture

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-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

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