Retry Strategy for Specific Errors

Hey, beginner here 👋🏻 I stumbled upon the Retrying section in the docs: https://effect.website/docs/guides/error-management/retrying. Given an Effect like Effect<number, NotFound | DatabaseTimeout, never, how would you write a pipe that only retries upon encountering a DatabaseTimeout, but short-circuits when a NotFound appears?
Was this page helpful?