Skip to content

Commit 16ec337

Browse files
committed
Make Mutex class final
1 parent 970fe7d commit 16ec337

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/PropertyBased/Mutex.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import Darwin
1010

1111
/// A back-ported version of Mutex from the Synchronization library.
12-
class Mutex<Value: ~Copyable>: @unchecked Sendable {
12+
final class Mutex<Value: ~Copyable>: @unchecked Sendable {
1313
private nonisolated(unsafe) var _value: Value
1414
private nonisolated(unsafe) var lock = os_unfair_lock()
1515

0 commit comments

Comments
 (0)