westonpace commented on pull request #10968: URL: https://github.com/apache/arrow/pull/10968#issuecomment-908914093
## Why can't FileWriteOptions be a `shared_ptr`? It can, and if we force everything to be `shared_ptr` then we just have to keep `this` alive and an asynchronous smart pointer would be sufficient but there are still lots of things like `ExecContext`, `Executor`, `IOContext`, etc. which we often pass by pointer and can go out of scope when the operation finishes. Plus, it still seems disingenuous to return from a high-level function/operation when cleanup work is still outstanding. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
