New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replay subject with asMaybes and take #93
Comments
The better approach depends on what you want to do when that inner replay subject errors. You probably want to use For example, if you just want it to complete instead of erroring:
Or just yield nil:
|
Using catch solves my issue, thanks. As a side note, this also loops indefinitely:
|
Nice catch. I created #94 for that issue. |
I'm having trouble with a scenario like this:
And this is because
asMaybes
actually is "asMaybesAndRepeatOnError
" andtake:1
valuesTaken goes past count.This makes me think to the Materialize as discussed in #90
To be more specific, I'm trying to make something like this (pseudocode):
The goal is to keep the outer rac alive even if the inner one fails.
If I move
asMaybe
afterswitch
the replay subject builded by theRACAble
macro, immediately fires the subscribable again, which is not desired.Wouldn't be this a use case for a subscribable that convert to maybes but completes upon error?
The text was updated successfully, but these errors were encountered: