Contents

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 throws

Discussion

Execution of the completion block occurs on the calling thread.

See Also

Managing a Device