boot_scheduling 0.2.0+1
boot_scheduling: ^0.2.0+1 copied to clipboard
Task scheduling for Boot (@Scheduled).
boot_scheduling #
Task scheduling for the Boot Framework.
Features #
@Scheduled(fixedRate: '5m')— periodic execution@Scheduled(fixedDelay: '10s')— delay between completions@Scheduled(cron: '0 0 * * *')— cron expressionsinitialDelay— wait before first executionparseDuration()— parse duration strings (ms, s, m, h, d)
Usage #
@Singleton()
class CleanupJob {
@Scheduled(fixedRate: '5m')
Future<void> clean() async { /* ... */ }
}