Home rxswift disposable
Post
Cancel

rxswift disposable

Disposable

1
2
3
4
public protocol Disposable {
    /// Dispose resource.
    func dispose()
}

Cancelable

1
2
3
4
public protocol Cancelable : Disposable {
    /// Was resource disposed.
    var isDisposed: Bool { get }
}

注:文中源码来自RxSwift

This post is licensed under CC BY 4.0 by the author.