Skip to content

Support for Aborting Transactions #56

@hiranya911

Description

@hiranya911

#54 implements transaction support where the ref.transaction() method accepts an update_function(). Following changes are proposed to this API:

  • update_function() may signal abort by raising an exception. This is probably how this API works today. Verify and fix if needed.
  • transaction() method returns the updated value when it commits. If retry attempts are exhausted it should raise an error.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions