You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@reef.apache.org by "Sergiy Matusevych (JIRA)" <ji...@apache.org> on 2017/10/23 08:40:00 UTC

[jira] [Updated] (REEF-1902) Use external executor and Runnable in MultiAsyncToSync

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

Sergiy Matusevych updated REEF-1902:
------------------------------------
    Issue Type: Sub-task  (was: Improvement)
        Parent: REEF-335

> Use external executor and Runnable in MultiAsyncToSync
> ------------------------------------------------------
>
>                 Key: REEF-1902
>                 URL: https://issues.apache.org/jira/browse/REEF-1902
>             Project: REEF
>          Issue Type: Sub-task
>          Components: Wake
>            Reporter: Sergiy Matusevych
>            Assignee: Sergiy Matusevych
>            Priority: Minor
>              Labels: asynchronous, tests, wake
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> {{MultiAsyncToSync}} class takes a {{FutureTask<>}} as input, but only calls its {{.run()}} method. That is, we can simplify the interface and make it accept {{Runnable}}. This change is packward-compatible, as {{FutureTask}} implements {{Runnable}}. We should also allow {{MultiAsyncToSync}} to run tasks indirectly using the executor service, and update the unit tests accordingly.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)