You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "David Li (Jira)" <ji...@apache.org> on 2021/04/08 11:56:00 UTC

[jira] [Assigned] (ARROW-12286) [C++] Create AsyncGenerator from Future>

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

David Li reassigned ARROW-12286:
--------------------------------

    Assignee: Weston Pace

> [C++] Create AsyncGenerator from Future<AsyncGenerator<T>>
> ----------------------------------------------------------
>
>                 Key: ARROW-12286
>                 URL: https://issues.apache.org/jira/browse/ARROW-12286
>             Project: Apache Arrow
>          Issue Type: Sub-task
>          Components: C++
>            Reporter: Weston Pace
>            Assignee: Weston Pace
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.0.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> This is useful for doing things like...
> Future<ItemVector> vec_fut = GetVectorOfThingsAsync();
> Future<AsyncGenerator<Item>> gen_fut = vec_fut.Then([] (const SomeVector& vec) \{ return MakeVectorGenerator(vec); };
> AsyncGenerator<Item> item_gen = MakeFutureFirstGenerator(gen_fut);
>  
> The cost of the initial future is just part of the cost of getting the first item from the generator.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)