andThen
infix fun <A> andThen(other: Schedule<@UnsafeVariance Input, A>): Schedule<Input, Either<Output, A>>(source)
Runs this
schedule until Done, and then runs other until Done. Wrapping the output of this
in Either.Left, and the output of other in Either.Right.
fun <A, B> andThen(other: Schedule<@UnsafeVariance Input, A>, ifLeft: suspend (Output) -> B, ifRight: suspend (A) -> B): Schedule<Input, B>(source)
Runs this
schedule, and transforms the output of this schedule using ifLeft, When this
schedule is Done, it runs other schedule, and transforms the output using ifRight.