Classes

The following classes are available globally.

TestScheduler definition

  • A Scheduler thats uses VirtualTime to schedule its tasks.

    A special, non thread-safe scheduler for testing operators that require a scheduler without introducing real concurrency. Faciliates a recreatable sequence of tasks executed within ‘virtual time’.

    See more

    Declaration

    Swift

    @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
    public class TestScheduler
    extension TestScheduler: Scheduler

TestableSubscriber definition

  • A subscriber that keeps a time-stamped log of the events that occur during the lifetime of a subscription to an arbitrary publisher.

    Initializable using the factory methods on TestScheduler

    See more

    Declaration

    Swift

    @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
    public final class TestableSubscriber<Input, Failure> where Failure : Error
    extension TestableSubscriber: Subscriber
    extension TestableSubscriber: Cancellable