westonpace commented on pull request #10602: URL: https://github.com/apache/arrow/pull/10602#issuecomment-868823151
Ok, I think I got it this time. It turned out to be a little trickier. AsyncGenerator was using AddCallback instead of Then and there are no sequencing guarantees with AddCallback so it was possible that the future containing the invalid item resolved (and it's callbacks ran) before the callback was run that marked the generator complete. I changed ReadaheadGenerator to use Then instead of AddCallback as this will be less confusing for consumers. -- 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