recursWhile<I> static method

Schedule<NoEnv, Never, I, int> recursWhile<I>(
  1. bool f(
    1. I _
    )
)

Implementation

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