NSLocking

extension NSLocking

Warning

Although this has public 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 on lock.

    Warning

    Although this has public 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 on lock, returning the output of block

    Warning

    Although this has public 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