write(_:)
Provides thread-safe scoped mutable access to protected value
func write<V>(_ body: (inout T) throws -> V) rethrows -> V
Parameters
- body
The closure to be called for scoped access
Returns
The return value of the closure
Provides thread-safe scoped mutable access to protected value
func write<V>(_ body: (inout T) throws -> V) rethrows -> V
The closure to be called for scoped access
The return value of the closure