Publishers.Share
A publisher that shares the output of an upstream publisher with multiple subscribers.
Declaration
final class Share<Upstream> where Upstream : PublisherOverview
This publisher type supports multiple subscribers, all of whom receive unchanged elements and completion states from the upstream publisher.
Be aware that Publishers.Share is a class rather than a structure like most other publishers. Use this type when you need a publisher instance that uses reference semantics.