Effect CommunityEC
Effect Community2y ago
8 replies
petros

Using a Custom Array for a Schedule

How do i use a custom schedule?

e.g. the below lets me do a schedule of [1000, 2000, 3000, 4000, ... ]

But how can i do it so that it is a custom array like [2, 5, 100, 200, 100000, ... ]

const schedule = pipe(
    spaced(millis(1000)),
    tapOutput((n) => logDebug(`Attempting again... ${n}`)),
    intersect(recurs(30))
  );
Was this page helpful?