Skip to content

Instantly share code, notes, and snippets.

View alberussoftware's full-sized avatar
🎯
Focusing

alberussoftware

🎯
Focusing
View GitHub Profile
@alberussoftware
alberussoftware / Observation.swift
Last active December 26, 2020 00:22 — forked from rnapier/observable.swift
New Observable idea
import struct Foundation.UUID
final class Disposable {
let dispose: () -> Void
init(dispose: @escaping () -> Void) {
self.dispose = dispose
}
deinit {
dispose()
}