Return-Path: X-Original-To: apmail-ignite-issues-archive@minotaur.apache.org Delivered-To: apmail-ignite-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0FEEB17D56 for ; Fri, 11 Sep 2015 12:59:46 +0000 (UTC) Received: (qmail 50471 invoked by uid 500); 11 Sep 2015 12:59:46 -0000 Delivered-To: apmail-ignite-issues-archive@ignite.apache.org Received: (qmail 50292 invoked by uid 500); 11 Sep 2015 12:59:45 -0000 Mailing-List: contact issues-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list issues@ignite.apache.org Received: (qmail 50278 invoked by uid 99); 11 Sep 2015 12:59:45 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Sep 2015 12:59:45 +0000 Date: Fri, 11 Sep 2015 12:59:45 +0000 (UTC) From: "Vladimir Ozerov (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (IGNITE-1414) .Net: support async/await in the API via extension methods MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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)