NSLocking
extension NSLocking
Warning
Although this haspublic
access, it is intended for internal use
and should not be used directly by host applications. The behaviors and names of
this type may change without warning.
-
Execute
block
after obtaining a lock onlock
.Warning
Although this haspublic
access, it is intended for internal use and should not be used directly by host applications. The behaviors and names of this type may change without warning.Declaration
Swift
public func execute( _ block: BasicThrowableClosure ) rethrows
Parameters
block
The block to execute
-
Execute
block
after obtaining a lock onlock
, returning the output ofblock
Warning
Although this haspublic
access, it is intended for internal use and should not be used directly by host applications. The behaviors and names of this type may change without warning.Declaration
Swift
public func execute<Output>( _ block: () throws -> Output ) rethrows -> Output
Parameters
block
The block to execute