BackgroundTask
The kinds of background tasks that your app or extension can handle.
Declaration
struct BackgroundTask<Request, Response>Overview
Use a value of this type with the backgroundTask(_:action:) scene modifier to create a handler for background tasks that the system sends to your app or extension. For example, you can use urlSession to define an asynchronous closure that the system calls when it launches your app or extension to handle a response from a background URLSession.