Cancelable.swift 310 B

12345678910111213
  1. //
  2. // Cancelable.swift
  3. // RxSwift
  4. //
  5. // Created by Krunoslav Zaher on 3/12/15.
  6. // Copyright © 2015 Krunoslav Zaher. All rights reserved.
  7. //
  8. /// Represents disposable resource with state tracking.
  9. public protocol Cancelable : Disposable {
  10. /// Was resource disposed.
  11. var isDisposed: Bool { get }
  12. }