Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 732C1200C44 for ; Mon, 27 Mar 2017 12:41:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 71C5F160B85; Mon, 27 Mar 2017 10:41:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B74E2160B5D for ; Mon, 27 Mar 2017 12:41:09 +0200 (CEST) Received: (qmail 76800 invoked by uid 500); 27 Mar 2017 10:41:08 -0000 Mailing-List: contact dev-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 dev@ignite.apache.org Received: (qmail 76788 invoked by uid 99); 27 Mar 2017 10:41:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Mar 2017 10:41:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 2EBEBC0D5B for ; Mon, 27 Mar 2017 10:41:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.897 X-Spam-Level: X-Spam-Status: No, score=-0.897 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.796, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 7O-dnSLRl_3z for ; Mon, 27 Mar 2017 10:41:07 +0000 (UTC) Received: from mail-wr0-f180.google.com (mail-wr0-f180.google.com [209.85.128.180]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id E841F5FB40 for ; Mon, 27 Mar 2017 10:41:06 +0000 (UTC) Received: by mail-wr0-f180.google.com with SMTP id u1so50013305wra.2 for ; Mon, 27 Mar 2017 03:41:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=Qog+eWNRRM/w9CBh5bHIqIyBqzl/aI64uy0Bkp9M5P8=; b=meFZQDKlkQ5SigR+yYqdjbvkUOwaFVLVfg3UQrookQ7BB4dMcygSRFeZM7GTEmYOGX g7aWiN1cC2yMWk01A1vc11BRA/1EDDp64bL4XkbunQwBzDKayxT7vzX2mKF8cw4KNY9B ge2E7nTvF8HuewFJ92ghwvQG5MaZAvRF2EtM+6RuubJFr4zMZVr+27StLkjlFnA4APcl vnNcJr7mE6oeBFx51vorVtQLkfvkAYtQRAvgrv5g4dvR7UMp5UoLLLUAJ47oaPm5ARf/ UB4st86bUzvyAvwqlrwBmIFzuGUYT2J8MPaN2L8tuFveNczyjLY6mCGt6FNRB3Ti0kZ+ Epqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=Qog+eWNRRM/w9CBh5bHIqIyBqzl/aI64uy0Bkp9M5P8=; b=ObZ9z5qa8+8RFZVazVnUYcIhCdCN6yBByMjcIMxyocYWAw/zlP6NhMEy3FYBbDE8yz 9sxtwuXw+Eq1xAoxXdNpA7Hzvb0rGmrLHYPpm45thFhFIiNojFaZ7FOPwE+/OUN+Hjk8 OSl3f0I7jaA//oyUSHIi3u1+T92bxc7cpx921RQUUaNgmMGLhQRVF0Q96r/bXwjJ2VSo IimAMmn7V0kkqa6z5XfgpyX5y052dB/4gq6vVUrCyp3bG5ZJnyI7oIVFXOn5yoC7Z9jx xOhuhz7TGKIpq6RfwYY6ikdYB23n9cPJY4Lr77JF/VW2tJNF6M2sZddUiMcOfmFpqd9p z3gA== X-Gm-Message-State: AFeK/H1M1VmqiX5pUN1WxLI+54mE4QM1ebi7P4O5QC9zJgXCLUpTzdP/ih+EKWVzL/Lw8bALKKY0zS2A2f7DDw== X-Received: by 10.223.172.21 with SMTP id v21mr21476447wrc.100.1490610824002; Mon, 27 Mar 2017 03:33:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.86.87 with HTTP; Mon, 27 Mar 2017 03:33:23 -0700 (PDT) In-Reply-To: References: From: =?UTF-8?B?0JTQvNC40YLRgNC40Lkg0KDRj9Cx0L7Qsg==?= Date: Mon, 27 Mar 2017 13:33:23 +0300 Message-ID: Subject: Re: IgniteFuture adapters To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary=f403045cf10aa9c5b7054bb3e0fa archived-at: Mon, 27 Mar 2017 10:41:10 -0000 --f403045cf10aa9c5b7054bb3e0fa Content-Type: text/plain; charset=UTF-8 IgniteFuture have method public IgniteFuture chain(IgniteClosure, T> doneCb); which do this. 2017-03-27 13:30 GMT+03:00 Sergei Egorov : > Hi! > > Would be nice if igniteFuture would provide a small but very usable method: > > public R to(Function, R> transformer) > > it will allow to chain it like: > > compute.runAsync(runnable).to(rx()).timeout(5_000).subscribe() > > Where rx() is just a static function with something like: > > public static Function, Observable> rx() > > > WDYT? > 2017-03-27 13:30 GMT+03:00 Sergei Egorov : > Hi! > > Would be nice if igniteFuture would provide a small but very usable method: > > public R to(Function, R> transformer) > > it will allow to chain it like: > > compute.runAsync(runnable).to(rx()).timeout(5_000).subscribe() > > Where rx() is just a static function with something like: > > public static Function, Observable> rx() > > > WDYT? > --f403045cf10aa9c5b7054bb3e0fa--