effect-io-ai

Package: effect
Module: Effect

Effect.Repeat.Options

Options that control whether and how an effect is repeated.

Signature

export interface Options<A> {
    while?: ((_: A) => boolean | Effect<boolean, any, any>) | undefined
    until?: ((_: A) => boolean | Effect<boolean, any, any>) | undefined
    times?: number | undefined
    schedule?: Schedule<any, A, any, any> | undefined
  }

Source

Since v2.0.0