Weston Pace created ARROW-13267:
-----------------------------------
Summary: [C++] Distinguish between async-reentrant generators and
unsafe generators
Key: ARROW-13267
URL: https://issues.apache.org/jira/browse/ARROW-13267
Project: Apache Arrow
Issue Type: Improvement
Components: C++
Reporter: Weston Pace
Right now there are a lot of comments in the MakeXyzGenerator functions
explaining if a generator can be called async reentrantly and if it will call
input generators async reentrantly. Rather than rely on comments and the user
doing the right thing we could create types for the two generators. The unsafe
generator could even serve as a base type that queues incoming requests. This
way all generators would technically be async reentrant and it would hopefully
remove some of the confusion.
This does mean converting async generators from aliases of std::function to
actual types.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)