Contents

rosecoder/distributed-lock-swift

This package provides a Swift implementation for distributed locking. It allows coordination between multiple processes or services to ensure exclusive access to shared resources.

Example usage

import DistributedLock

let lock = MyLockImplementation()

try await lock.withLock("my-resource") {
    // operations that should be protected by the lock
}

It also provides logging and tracing support for the time the lock is waiting to be acquired.

Package Metadata

Repository: rosecoder/distributed-lock-swift

Default branch: main

README: README.md