Skip to content

Instantly share code, notes, and snippets.

View Mathieu-Gosbee-ConnectedLab's full-sized avatar

Mathieu Gosbee Mathieu-Gosbee-ConnectedLab

View GitHub Profile
import Foundation
import RxSwift
public enum SerialQueueState {
case active
case idle
}
class SerialQueueSubject<T>: ObservableType where T: ObservableType {
public var state: Observable<SerialQueueState> {
return Observable.combineLatest(self.active, self.list)