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

After Transaction Update #73

Merged
merged 1 commit into from
Jul 11, 2022
Merged

After Transaction Update #73

merged 1 commit into from
Jul 11, 2022

Conversation

Waidhoferj
Copy link
Collaborator

Adds the get_update method to the AfterTransactionEvent so that delta state is accessible in the observe_after_transaction callback.

Fixes #69

  • Updated some YDoc methods to not require mutable access.
  • Exposed AfterTransactionEvent to library users.
  • Reduced blanket ToPython array impl to just handle Vec
  • Added test to verify get_update

Adds the `get_update` method to the AfterTransactionEvent so that delta state is accessible in the `observe_after_transaction` callback.

- Updated some YDoc methods to not require mutable access.
- Exposed AfterTransactionEvent to library users.
- Reduced blanket `ToPython` array impl to just handle Vec<Any>
- Added test to verify `get_update`
@Waidhoferj Waidhoferj added the enhancement New feature or request label Jul 11, 2022
@Waidhoferj Waidhoferj self-assigned this Jul 11, 2022
@Waidhoferj Waidhoferj merged commit 2aba86e into main Jul 11, 2022
@Waidhoferj Waidhoferj deleted the after-transaction-update branch July 11, 2022 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Double borrow in observe_after_transaction
2 participants