effect-io-ai

Package: effect
Module: Schedule

Schedule.resetAfter

Returns a new schedule that automatically resets to its initial state after a period of inactivity defined by duration.

Details

This function modifies a schedule so that if no inputs are received for the specified duration, the schedule resets as if it were new.

See

Signature

declare const resetAfter: { (duration: Duration.DurationInput): <Out, In, R>(self: Schedule<Out, In, R>) => Schedule<Out, In, R>; <Out, In, R>(self: Schedule<Out, In, R>, duration: Duration.DurationInput): Schedule<Out, In, R>; }

Source

Since v2.0.0