Instance Method


Returns a publisher as a class instance.


func share() -> Publishers.Share<Publishers.Merge4<A, B, C, D>>

Return Value

A class instance that republishes its upstream publisher.


The downstream subscriber receieves elements and completion states unchanged from the upstream publisher. Use this operator when you want to use reference semantics, such as storing a publisher instance in a property.