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
Hey guys!
I'm currently changing some promises to use .firstValue(where:) to find matching element and this works well. My only issue is that i want to replace the standard error "PMKError.emptySequence" thrown to my own error for better clarity.
I have tried chaining the .firstValue with a .recover but that doesnt seem to work.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey guys!
I'm currently changing some promises to use .firstValue(where:) to find matching element and this works well. My only issue is that i want to replace the standard error "PMKError.emptySequence" thrown to my own error for better clarity.
I have tried chaining the .firstValue with a .recover but that doesnt seem to work.
Any ideas on how i can achieve this?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions