Skip to content

Update docs for ObjectIdentifier to mention actors #83049

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions stdlib/public/core/ObjectIdentifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@

#if !$Embedded

/// A unique identifier for a class instance or metatype.
/// A unique identifier for a class instance, actor instance, or metatype.
///
/// This unique identifier is only valid for comparisons during the lifetime
/// This unique identifier is valid for comparisons only during the lifetime
/// of the instance.
///
/// In Swift, only class instances and metatypes have unique identities. There
/// is no notion of identity for structs, enums, functions, or tuples.
/// In Swift, only instances of classes, instances of actors, and metatypes
/// have unique identities. There's no notion of identity for structures,
/// enumerations, functions, or tuples.
@frozen // trivial-implementation
public struct ObjectIdentifier: Sendable {
@usableFromInline // trivial-implementation
Expand Down