You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PublishSubject is not working with ignoreErrors function because ignoreErrors is synonym of retry. But PublishSubject can't retry by contract cause it's not operation.
In this code I can think the sequence can't terminated on error (and yes it's not terminated 😺) but it's not right by contract of Observable. So I think this operator is mislead and I suggest to remove it.
The text was updated successfully, but these errors were encountered:
You can't technically do anything against the contract.
The stream isn't terminated because ignoreErrors is just an alias to retry - by infinitely retrying the error'd stream, you are stuck in an infinite loop.
What we can do is change the documentation perhaps. I also think the naming is a bit misleading, because you're not exactly ignoring errors. Ignoring errors would be something like materialize, filtering errors and dematerialize.
ajjnix
changed the title
Name method ignoreErrors break contract of PublishSubject
Name of method ignoreErrors break contract of PublishSubjectJun 6, 2019
PublishSubject
is not working withignoreErrors
function becauseignoreErrors
is synonym ofretry
. ButPublishSubject
can'tretry
by contract cause it's not operation.In this code I can think the sequence can't terminated on error (and yes it's not terminated 😺) but it's not right by contract of
Observable
. So I think this operator is mislead and I suggest to remove it.The text was updated successfully, but these errors were encountered: