ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Ozerov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-1414) .Net: support async/await in the API via extension methods
Date Fri, 11 Sep 2015 12:59:45 GMT
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

IFuture fut = target.CurrentFuture();

Task task = fut.ToTask();

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.:
Task task = target.DoAsync(t => t.Execute());

This message was sent by Atlassian JIRA

View raw message