Skip to content

Instantly share code, notes, and snippets.

View serbats's full-sized avatar

Sergii Batsevych serbats

  • Ukraine, Lviv
View GitHub Profile
@serbats
serbats / Combine+BaseAbstractions.swift
Last active September 13, 2020 20:52
Missing Apple Combine Operators: withLatestFrom, materialize, dematerialize
import Foundation
import Combine
// Base Abstraction Classes
@available(OSX 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
protocol DownStreamHelperProtocol {
/// Helper for handling backpressure
/// DownstreamSubscription class use it as delegate for backpressure handling
associatedtype Input