Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Ennio Masi ennioma

🎯
Focusing
View GitHub Profile
@MarcoSantarossa
MarcoSantarossa / AsyncOperation.swift
Last active Feb 2, 2021
How to write and use an asynchronous operation
View AsyncOperation.swift
import Foundation
class AsyncOperation: Operation {
enum State: String {
case isReady, isExecuting, isFinished
}
override var isAsynchronous: Bool {
return true
}