mapleFU commented on PR #44990: URL: https://github.com/apache/arrow/pull/44990#issuecomment-2757207615
> Using lock is probably able to prevent the weird bug from happening, but I'd say it's kind of against the design purpose of async generators. An `std::atomic<int64_t>` with CAS would works in this scenerio, I just use a lock-based impl to verify it fixes this problem -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org