Skip to content

Conversation

guybedford
Copy link
Collaborator

@guybedford guybedford commented Jun 17, 2025

This updates to &self over &mut self references where possible, as a breaking alternative to #737.

This then correctly allows concurrent calls to methods, while retaining safe Rust semantics.

Durable object code will need to be updated to work with this new implementation shape - in particular using standard Rust cell idioms to protect mutable data fields on the durable object.

@guybedford guybedford merged commit 8bbfe4c into main Jun 17, 2025
6 checks passed
@guybedford guybedford deleted the gbedford/immutable-methods branch June 18, 2025 23:12
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

Successfully merging this pull request may close these issues.

2 participants