delay method

ZIO<R, E, A> delay(
  1. Duration duration
)

Delay the evaluation of this ZIO by the given duration.

The delay will occur before the ZIO is evaluated.

Implementation

ZIO<R, E, A> delay(Duration duration) =>
    ZIO.sleep<R, E>(duration).zipRight(this);