[
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)