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

Provide Drop-based API for Transactions #53

Closed
RadicalZephyr opened this issue Jul 20, 2020 · 1 comment
Closed

Provide Drop-based API for Transactions #53

RadicalZephyr opened this issue Jul 20, 2020 · 1 comment
Milestone

Comments

@RadicalZephyr
Copy link
Contributor

I think it should be possible to implement an API similar to what I'm seeing in your cxx-alt variant of sodium where a Transaction object can be created that keeps the transaction open as long as that struct is alive and closes the transaction when it is destructed. This would give the same sort of RAII-guard type benefits and allow the tests between the two variants to look MUCH more similar.

@clinuxrulz
Copy link
Collaborator

That is a good idea. I approve of it.

@clinuxrulz clinuxrulz added this to the v2.1.0 milestone Jul 23, 2020
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

2 participants