CombineCommunity / CombineExt

CombineExt provides a collection of operators, publishers and utilities for Combine, that are not provided by Apple themselves, but are common in other Reactive Frameworks and standards.
https://combine.community
MIT License
1.72k stars 151 forks source link

Is Relay necessary? #143

Closed tomisacat closed 2 years ago

tomisacat commented 2 years ago

The main purpose of relay is to protect sending failure event, while setting the failure type to Never could achieve the same result. Is there something more Relay could do beyond the subject-counterpart, or something I misunderstood?

freak4pc commented 2 years ago

It also doesn't allow sending a completion event, which is a guarantee Subjects don't make and can get useful.

If you don't find it necessary you can simply not use it :)