cancel()
Cancels a matchmaking request.
Declaration
func cancel()Discussion
GameKit sends a GKError.Code.cancelled error to the completion handler of either the findMatch(for:withCompletionHandler:) or findPlayers(forHostedRequest:withCompletionHandler:) method.