Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 613 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 613 Bytes

A cron-like time-based job scheduler for Dart

Run tasks periodically at fixed times or intervals.

Usage

A simple usage example:

import 'package:cron/cron.dart';

main() {
  var cron = new Cron();
  cron.schedule(new Schedule.parse('*/3 * * * *'), () async {
    print('every three minutes');
  });
  cron.schedule(new Schedule.parse('8-11 * * * *'), () async {
    print('between every 8 and 11 minutes');
  });
}

Links