Files
GitHawk/Classes/Utility/IsCancellationError.swift
Hesham Salman a52e533b5f User can receive search results while typing (#611)
* Cancelled networking when the cancel button is pressed

* Responded to comments: code formatting & cleanup

* Can now search while typing

Slight formatting changes

* Prevented search term from showing up in recent before search succeeds

* Show loading screen while typing

* Less complicated network cancellation

* Cleaned up groups

* Recently viewed repos (#631)

* Recently Viewed Repos saved in search store

* Styling changes

* Equatable changes and visual updates

* Visually update after selecting a repo

* Rebased

* Slowed down the debouncer a bit
2017-10-22 00:11:12 -04:00

15 lines
318 B
Swift

//
// IsCancellationError.swift
// Freetime
//
// Created by Hesham Salman on 10/19/17.
// Copyright © 2017 Ryan Nystrom. All rights reserved.
//
import Foundation
func isCancellationError(_ error: Error?) -> Bool {
guard let error = error else { return false }
return (error as NSError).code == -999
}