struct Mutex: ~Copyable
init
(
initialValue
)
|
Signature
public init(_ initialValue: sending Value) Parameters _ initialValue: sending Value |
withLock
(
body
)
|
Signature
public func withLock<Result, E>(_ body: (inout sending Value) throws(E) -> sending Result) -> sending Result Parameters _ body: (inout sending Value) throws(E) -> sending ResultReturns sending Result |