init(completeImmediately:outputType:failureType:)
Creates an empty publisher with the given completion behavior and output and failure types.
Declaration
init(completeImmediately: Bool = true, outputType: Output.Type, failureType: Failure.Type)Parameters
- completeImmediately:
A Boolean value that indicates whether the publisher should immediately finish.
- outputType:
The output type exposed by this publisher.
- failureType:
The failure type exposed by this publisher.
Discussion
Use this initializer to connect the empty publisher to subscribers or other publishers that have specific output and failure types.