Task typedef

Task = FutureOr Function()

A task may return a Future to indicate when it is completed. If it wouldn't complete before Cron calls it again, it will be delayed.

Implementation

typedef Task = FutureOr<dynamic> Function();