atomicReplace method

  1. @override
Future<void> atomicReplace(
  1. Future<void> buildTemp(
    1. StorageBackend temp
    )
)
override

Atomically swaps the container's contents with a fresh backend built by buildTemp.

Implementations should build the temp target cleanly, invoke flush(), atomically replace the live backing store (e.g. rename), and rebind subsequent operations to the new store.

Implementation

@override
Future<void> atomicReplace(
  Future<void> Function(StorageBackend temp) buildTemp,
) => atomicReplaceWithHooks(buildTemp);