Marks the end of a specific long-running background task.
- iOS 4.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
An identifier returned by the
Background Task(expiration Handler:)
You must call this method to end a task that was started using the
begin method. If you do not, the system may kill your app.
This method can be safely called on a non-main thread.