TestablePublisher

@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
public struct TestablePublisher<Output, Failure> : Publisher where Failure : Error

A Publisher that produces the elements provided in a TestSequence.

Initializable using the factory methods on TestScheduler

  • Declaration

    Swift

    public func receive<S>(subscriber: S) where Output == S.Input, Failure == S.Failure, S : Subscriber