10000 After Transaction Update by Waidhoferj · Pull Request #73 · y-crdt/ypy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Apr 22, 2025. It is now read-only.

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 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
2 participants
0