Understanding Effect.retry in a Pipe with Multiple Effects

Hi, i have a question regarding Effect.retry, if i have a pipe, and i am stacking effects with retry then how will i know what effect will be retried?

for examples
const prog = pipe(
  Effect.gen(...), // effect 1
  Effect.flatMap(...), // effect 2
  Effect.retry(...), // retry 1
  Effect.flatMap(...), // effect 3
  Effect.retry(...), // retry 2
  Effect.map(...) // map
  Effect.retry(...) // retry 3
)
Was this page helpful?