Classes

The following classes are available globally.

  • A container for cancellables that will be cancelled when the bag is deallocated or cancelled itself

    See more

    Declaration

    Swift

    @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
    @available(*, deprecated, message: "Replace with mutable Set<AnyCancellable>")
    public final class CancellableBag : Cancellable
  • A subject that maintains a buffer of its latest values for replay to new subscribers and passes through subsequent elements and completion

    The subject passes through elements and completion states unchanged and in addition replays the latest elements to any new subscribers. Use this subject when you want subscribers to receive the most recent previous elements in addition to all future elements.

    See more

    Declaration

    Swift

    @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
    public final class ReplaySubject<Output, Failure> where Failure : Error
    extension ReplaySubject: Publisher
    extension ReplaySubject: Subject

Public facing Dispatcher defintion

  • Manages a queue of publisher sequence elements to be delivered to a subscriber

    See more

    Declaration

    Swift

    @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
    public class Dispatcher<Input, Failure> where Failure : Error

Class definition

  • A scheduler for performing trampolined actions.

    This scheduler will queue scheduled actions immediately on the current thread performing them in a first in, first out order.

    You can only use this scheduler for immediate actions. If you attempt to schedule actions after a specific date, the scheduler produces a fatal error.

    See more

    Declaration

    Swift

    public final class TrampolineScheduler
    extension TrampolineScheduler: Scheduler
  • An object that notifies of its deallocation via a publisher sequence

    See more

    Declaration

    Swift

    @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
    public final class DeallocToken