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 last value to TxnLocal afterRollback and afterCompletion #28

Open
nbronson opened this issue Jan 4, 2012 · 0 comments
Open

Comments

@nbronson
Copy link
Owner

nbronson commented Jan 4, 2012

TxnLocal's afterCommit handler provides the user with the last contained value. afterRollback and afterCompletion should probably do the same thing. Currently you can work around this by explicitly registering a Txn.afterCompletion handler inside TxnLocal.initialValue, but the API should make this easier.

This will require a change to the API. Not sure if there is a clean backward compatible way.

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