Publisher
public extension Publisher
-
Maps the
Output
of its upstream toVoid
and type erases its upstream toAnyPublisher
.Declaration
Swift
func voidPublisher() -> AnyPublisher<Void, Failure>