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

Pavel  Tupitsyn closed IGNITE-1414.
-----------------------------------

> .Net: support async/await in the API via extension methods
> ----------------------------------------------------------
>
>                 Key: IGNITE-1414
>                 URL: https://issues.apache.org/jira/browse/IGNITE-1414
>             Project: Ignite
>          Issue Type: Task
>          Components: interop
>    Affects Versions: 1.1.4
>            Reporter: Vladimir Ozerov
>
> Currently to get awaitable target (Task) for async operation, user have to do 
> the following (pseudocode):
> {code}
> target.ExecuteOperation();
> IFuture fut = target.CurrentFuture();
> Task task = fut.ToTask();
> {code}
> This is too complex. We need to think how to minimize this boilerplate code. 
> Extensions + lambdas appears to be good candidates for this. E.g.:
> {code}
> Task task = target.DoAsync(t => t.Execute());
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to