Closed rm155 closed 2 years ago
How did you confirm that these changes are needed to use in Ractor? Can we create test cases for Ractor?
How did you confirm that these changes are needed to use in Ractor? Can we create test cases for Ractor?
If CSV tries to parse a file from a Ractor, it looks for the converters, but since they are unfrozen shared constants, it can't access them.
I've written some tests for using CSV in Ractors. I can upload them soon.
Thank you so much for your suggestions! I will update the pull request and rebase within the next few days.
I have made the updates and done the rebasing. I hope it is okay! Please let me know if there is any way I can improve it.
I'll merge this. Thanks!
I'll merge this. Thanks!
Thanks so much for your support and patience!
In order to become Ractor-compliant, CSV should avoid relying on class variables and global variables.
Additionally, since Converters and HeaderConverters are not accessible from Ractors, defining get_converters and get_header_converters (which access Ractor-local versions) can allow for an alternative within Ractors.