Skip to content

Commit 5ebdb4e

Browse files
authored
Mark Lock as deprecated (#328)
1 parent a45bf60 commit 5ebdb4e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/TSCBasic/Lock.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import Foundation
1212
import TSCLibc
1313

14+
@available(*, deprecated, message: "Use NSLock directly instead. SPM has a withLock extension function" )
1415
/// A simple lock wrapper.
1516
public struct Lock {
1617
private let _lock = NSLock()

0 commit comments

Comments
 (0)