<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Distributed/DistributedActorSystem/resignID(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Distributed"
    ],
    "preciseIdentifier" : "s:11Distributed0A11ActorSystemP8resignIDyy0bE0QzF"
  },
  "title" : "resignID(_:)"
}
-->

# resignID(_:)

Called during when a distributed actor is deinitialized, or fails to initialize completely (e.g. by throwing
out of an `init` that did not completely initialize all of the actors stored properties yet).

```
func resignID(_ id: Self.ActorID)
```

## Parameters

`id`

the id of an actor managed by this system that has begun its `deinit`.

## Discussion

This method is guaranteed to be called at-most-once for a given id (assuming IDs are unique,
and not re-cycled by the system), i.e. if it is called during a failure to initialize completely,
the call from the actor’s deinitializer will not happen (as under these circumstances, `deinit` will be run).

If `resignID` gets called with some unknown ID, it should crash immediately as it signifies some
very unexpected use of the system.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)