Skip to content

NSLocking missing withLock(_:) method #4735

Closed
@fumoboy007

Description

@fumoboy007

Xcode 14 introduced the NSLocking.withLock(_:) method to the Darwin implementation of Foundation. This new method is missing from the open-source implementation.

(Note: The documentation incorrectly specifies the availability of the method as iOS 16+, etc. but it is actually available on all OS versions because it is marked @_alwaysEmitIntoClient. The documentation bug is tracked by FB11968310.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions