delay method
Creates a TaskOption that will complete after a time delay specified by a Duration.
Implementation
TaskOption<R> delay(Duration duration) =>
TaskOption(() => Future.delayed(duration, run));
Creates a TaskOption that will complete after a time delay specified by a Duration.
TaskOption<R> delay(Duration duration) =>
TaskOption(() => Future.delayed(duration, run));