NSLocking
public 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
blockafter obtaining a lock onlock.Warning
Although this haspublicaccess, 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
func execute( _ block: BasicThrowableClosure ) rethrowsParameters
blockThe block to execute
-
Execute
blockafter obtaining a lock onlock, returning the output ofblockWarning
Although this haspublicaccess, 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
func execute<Output>( _ block: () throws -> Output ) rethrows -> OutputParameters
blockThe block to execute
View on GitHub