Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cookbook documentation demonstrating safe multi-threaded usage of IonValue #838

Open
tgregg opened this issue May 7, 2024 · 1 comment

Comments

@tgregg
Copy link
Contributor

tgregg commented May 7, 2024

Safely accessing an IonValue concurrently requires calling makeReadOnly in a single thread before initiating concurrent access. Violating this contract can result in non-deterministic behavior that is hard to root cause. Although the API documentation makes this contract clear, adding documentation that introduces the concept to new users early could reduce the risk that it is violated.

@tgregg
Copy link
Contributor Author

tgregg commented May 7, 2024

We could also create a Discussion that would allow users to provide feedback on the usability of ion-java in multi-threaded contexts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant