delay method

TaskEither<L, R> delay(
  1. Duration duration
)

Creates a TaskEither that will complete after a time delay specified by a Duration.

Implementation

TaskEither<L, R> delay(Duration duration) =>
    TaskEither(() => Future.delayed(duration, run));