Files
RxSwift/RxCocoa/Common/Observables/Implementations/DeallocObservable.swift
Jamie Pinkham 924a9a4983 clean up syntax to get test building
still trying to work out the ambiguious use compiler error
2016-06-22 09:34:04 -04:00

25 lines
399 B
Swift

//
// DeallocObservable.swift
// Rx
//
// Created by Krunoslav Zaher on 12/19/15.
// Copyright © 2015 Krunoslav Zaher. All rights reserved.
//
import Foundation
#if !RX_NO_MODULE
import RxSwift
#endif
class DeallocObservable {
let _subject = ReplaySubject<Void>.create(bufferSize:1)
init() {
}
deinit {
_subject.on(.next(()))
_subject.on(.completed)
}
}