backgroundTask(_:action:) | Apple Developer Documentation

Runs the specified action when the system provides a background task.