<!--
{
  "availability" : [
    "iOS: 16.0.0 - 27.2.0",
    "iPadOS: 16.0.0 - 27.2.0",
    "macCatalyst: 16.0.0 - 27.0.0",
    "macOS: 13.0.0 - 27.2.0",
    "visionOS: 1.0.0 - 27.2.0"
  ],
  "documentType" : "symbol",
  "framework" : "MetricKit",
  "identifier" : "/documentation/MetricKit/MXMetricManager/finishExtendedLaunchMeasurement(forTaskID:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "MetricKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MXMetricManager(cm)finishExtendedLaunchMeasurementForTaskID:error:"
  },
  "title" : "finishExtendedLaunchMeasurement(forTaskID:)"
}
-->

# finishExtendedLaunchMeasurement(forTaskID:)

Signals the end of an extended launch task.

```
class func finishExtendedLaunchMeasurement(forTaskID taskID: MXLaunchTaskID) throws
```

## Parameters

`taskID`

The task identifier. Must be a unique, `non-null` string.

## Discussion

Use this method on the main thread to end an extended launch task previously started with [`extendLaunchMeasurement(forTaskID:)`](/documentation/MetricKit/MXMetricManager/extendLaunchMeasurement(forTaskID:)).

---

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)