You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Vladimir Ozerov (JIRA)" <ji...@apache.org> on 2015/09/11 14:59:45 UTC
[jira] [Created] (IGNITE-1414) .Net: support async/await in the API
via extension methods
Vladimir Ozerov created IGNITE-1414:
---------------------------------------
Summary: .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
Fix For: ignite-1.5
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)