Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 22, 2025. It is now read-only.

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 requested a review from davidbrochart July 11, 2022 01:09
@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 subscribe to this conversation on GitHub. Already have an account? Sign in.

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

3 participants