transaction method

Future<void> transaction(
  1. Future<void> callback(
    1. DurableObjectTransaction tsx
    )
)

Implementation

Future<void> transaction(
    Future<void> Function(DurableObjectTransaction tsx) callback) async {
  return _delegate.transaction((tsx) async {
    return callback(DurableObjectTransaction._(tsx));
  });
}