is there a way to use a kotlin flow retry operator...
# announcements
a
is there a way to use a kotlin flow retry operator without the source throwing an exception? as in if the source returns some value retry the original flow
e
Copy code
flow
  .onEach { if (it == SpecialValue) throw RetryException() }
  .retry { it is RetryException() }
👍 2
a
@elizarov That’s fantastically simple. Much appreciated.