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

Clone For Thread Safe Methods #293

Closed
mariuszgromada opened this issue Jan 28, 2023 · 1 comment
Closed

Clone For Thread Safe Methods #293

mariuszgromada opened this issue Jan 28, 2023 · 1 comment

Comments

@mariuszgromada
Copy link
Owner

Methods for cloning parser objects to allow them to be run independently and safely by different threads.
#203

@mariuszgromada
Copy link
Owner Author

Creates a completely independent 1-1 clone that can be safely used by a separate thread. If the cloned element contains references to other elements (e.g. arguments, functions, constants), then they will also be cloned and the newly created element will contain references to the corresponding clones. Important - the API allows you to extract all these clones.

Expression.cloneForThreadSafe()
Function.cloneForThreadSafe()
Argument.cloneForThreadSafe()
RecursiveArgument.cloneForThreadSafe()
Constant.cloneForThreadSafe()

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

No branches or pull requests

1 participant