recursN<I> static method

Schedule<NoEnv, Never, I, int> recursN<I>(
  1. int n
)

Implementation

static Schedule<NoEnv, Never, I, int> recursN<I>(int n) => Schedule._(
      (input, count, lastTick) =>
          n >= count ? ZIO.succeed(count) : ZIO.fail(const None()),
    );