Short-circuiting an `Effect.loop` in Effect Typescript

Is there a way to short circuit an Effect.loop like using break inside a while loop? Or should I just use the error channel?
Was this page helpful?