Pause execution of the task by the given Duration.
Task<A> Function(Task<A> task) delay<A>(Duration d) => (task) => Task(() => Future.delayed(d, task));