DDtKey commented on issue #4778:
URL: https://github.com/apache/arrow-rs/issues/4778#issuecomment-1707417762

   Just as an option to consider: is to [spawn blocking 
task](https://docs.rs/tokio/latest/tokio/task/fn.spawn_blocking.html#) and 
don't block on it. 
   Technically file deletion still may fail, and drop won't guarantee that file 
is really deleted. 
   
   Cleanup/sweeper thread/task is also possible solution - send a message to 
channel on `Drop` and do the deletion in this worker task. Probably even 
combination of both approaches: spawn_blocking task to delete a file and in 
case of fail send a message to cleanup task.


-- 
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]

Reply via email to