sebl
1
I’m searching for a way to redo (retry) an observable without entering the mainloop.
simplified example:
When the random node produces an even number, an exception is being thrown.(placeholder for something went wrong).
Is there a way to tell the observable to repeat the whole foreach? The trigger to do that in this example would be the Failure IOBox.
i thought retry or backoffandretry could be useful, but couldn’t figure out how.
1 Like
Hadasi
2
If I understand it correctly, Channels can be modified across threads, so maybe something like this?
Reactive Retry 4 Sebl.vl (21.6 KB)
sebl
3
Hi and thanks a lot!
your solution is working, but still touches the mainloop.
i was hoping for a solution that stays completely async.
i modified your patch to somehow achieve this. but still feels hacky and has its downsides.
Reactive Retry 6 Sebl.vl (33.1 KB)
Hadasi
4
Okay, it sounds like you need a while loop in an async task/process.
Does that sound right?
sebl
6
I read that already, but couldn’t figure out how to use retry.
in the forecast region I cannot do things things like onerror etc.
a solution that repeats/retries (n times) the incoming observable in case of an exception would be ideal IMHO.
sebl
7
that is also a possible solution. plan b for now :)