mvniekerk / tokio-cron-scheduler

Schedule tasks on Tokio using cron-like annotation
Apache License 2.0
453 stars 54 forks source link

Make `shutdown_on_signal` only available on Unix #48

Closed SandroHc closed 2 months ago

SandroHc commented 1 year ago

Fixes the compilation error on Windows due to tokio::signal::unix::SignalKind only being available on Unix systems. Should fix #36.

As a bonus, I have also fixed the following deprecation warning:

use of deprecated associated function chrono::NaiveDateTime::from_timestamp: use from_timestamp_opt() instead

mvniekerk commented 2 months ago

Hi @SandroHc Thank you for the PR.