v0.6.2
cron
크론과 유사한 시간 기반 작업 스케줄러입니다. 고정된 시간이나 간격으로 작업을 주기적으로 실행합니다.
595좋아요 5.6만30일 다운로드160Pub 점수
AndroidiOSWebmacOSWindowsLinux
Dart용 크론 유사 시간 기반 작업 스케줄러
^1.1.1^5.0.0^1.25.0^1.3.1아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
Run tasks periodically at fixed times or intervals.
A simple usage example:
import 'package:cron/cron.dart';
void main() {
final cron = Cron();
cron.schedule(Schedule.parse('*/3 * * * *'), () async {
print('every three minutes');
});
cron.schedule(Schedule.parse('8-11 * * * *'), () async {
print('between every 8 and 11 minutes');
});
}
You can easily create and parse cron format:
import 'package:cron/cron.dart';
void main() {
print(Schedule.parse('3-5 * * * *').minutes); // [3, 4, 5]
print(Schedule(hours: 12, minutes: 25, weekdays: [2, 3])
.toCronString()); // 25 12 * * 2,3
}