Retrying an Effect on a Specific TaggedError

How do I retry an Effect on only a certain TaggedError?
Effect.Effect<string, SomeError | OtherError>
I want to use
  Effect.retry(effect, {
    times: 2,
    schedule: Schedule.fixed("200 millis"),
  });
Was this page helpful?