<!--
{
  "availability" : [
    "Reality Composer Pro: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "ComputeGraph",
  "identifier" : "/documentation/ComputeGraph/element/terminate",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Compute Graph"
    ],
    "preciseIdentifier" : "element::terminate"
  },
  "title" : "element::terminate"
}
-->

# element::terminate

Ends the lifetime of the current element, if terminate is true.

```
void element::terminate(bool terminate)
```

## Parameters

`terminate`

A boolean indicating whether termination is requested.

## Discussion> Visual: ![Graph](element__terminate)

---

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)