requestCloseSession(options:completion:)
Requests to close an open session on the device, then executes the completion handler.
Declaration
func requestCloseSession(options: [ICSessionOptions : Any]? = nil, completion: @escaping @Sendable ((any Error)?) -> Void)func requestCloseSession(options: [ICSessionOptions : Any]? = nil) async throwsDiscussion
Execution of the completion block occurs on the calling thread.