sleep<E, L> static method

Effect<E, L, void> sleep<E, L>(
  1. Duration duration
)

{@category constructors}

Implementation

static Effect<E, L, void> sleep<E, L>(Duration duration) => Effect.from(
      (_) => Future.delayed(
        duration,
        () => const Right(null),
      ),
    );