Disposables
-
Represents an Action-based disposable.
When dispose method is called, disposal action will be dereferenced.
See moreDeclaration
Swift
public final class AnonymousDisposable : DisposeBase, Cancelable
-
Represents two disposable resources that are disposed together.
See moreDeclaration
Swift
public final class BinaryDisposable : DisposeBase, Cancelable
-
Represents a disposable resource that can be checked for disposal status.
See moreDeclaration
Swift
public class BooleanDisposable : Disposable, Cancelable
-
Represents a group of disposable resources that are disposed together.
See moreDeclaration
Swift
public class CompositeDisposable : DisposeBase, Disposable, Cancelable
-
Thread safe bag that disposes added disposables on
deinit.This returns ARC (RAII) like resource management to
RxSwift.In case contained disposables need to be disposed, just put a different dispose bag or create a new one in its place.
self.existingDisposeBag = DisposeBag()In case explicit disposal is necessary, there is also
See moreCompositeDisposable.Declaration
Swift
public class DisposeBag: DisposeBase
-
Base class for all disposables.
Declaration
Swift
public class DisposeBase
-
Declaration
Swift
public struct NopDisposable : Disposable
-
Represents a disposable resource that only disposes its underlying disposable resource when all dependent disposable objects have been disposed.
See moreDeclaration
Swift
public class RefCountDisposable : DisposeBase, Cancelable
-
Represents a disposable resource whose disposal invocation will be scheduled on the specified scheduler.
See moreDeclaration
Swift
public class ScheduledDisposable : Cancelable
-
Represents a disposable resource whose underlying disposable resource can be replaced by another disposable resource, causing automatic disposal of the previous underlying disposable resource.
See moreDeclaration
Swift
public class SerialDisposable : DisposeBase, Cancelable
-
Represents a disposable resource which only allows a single assignment of its underlying disposable resource.
If an underlying disposable resource has already been set, future attempts to set the underlying disposable resource will throw an exception.
See moreDeclaration
Swift
public class SingleAssignmentDisposable : DisposeBase, Disposable, Cancelable
-
Undocumented
See more
Disposables Reference