Skip to content

Instantly share code, notes, and snippets.

View Kastet's full-sized avatar
💭
I may be slow to respond.

Kostia Kim Kastet

💭
I may be slow to respond.
View GitHub Profile
@Kastet
Kastet / AsynchronousOperation.swift
Created July 19, 2017 06:25 — forked from calebd/AsynchronousOperation.swift
Concurrent NSOperation in Swift
import Foundation
/// An abstract class that makes building simple asynchronous operations easy.
/// Subclasses must implement `execute()` to perform any work and call
/// `finish()` when they are done. All `NSOperation` work will be handled
/// automatically.
open class AsynchronousOperation: Operation {
// MARK: - Properties