effect-io-ai

Package: effect
Module: Schedule

Schedule.fromFunction

Creates a schedule that always recurs, transforming input values using the specified function.

Details

This schedule continuously executes and applies the given function f to each input value, producing a transformed output. The schedule itself does not control delays or stopping conditions; it simply transforms the input values as they are processed.

This is useful when defining schedules that map inputs to outputs, allowing dynamic transformations of incoming data.

Signature

declare const fromFunction: <A, B>(f: (a: A) => B) => Schedule<B, A>

Source

Since v2.0.0