mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-04-16 22:40:44 +08:00
* 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
15 lines
318 B
Swift
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
|
|
}
|