Creates a task that will complete after a time delay specified by a Duration.
Task<A> delay(Duration duration) => Task(() => Future.delayed(duration, run));