termux / termux-api

Termux add-on app which exposes device functionality as API to command line programs.
https://f-droid.org/en/packages/com.termux.api/
2.34k stars 459 forks source link

Expose setPeriodic (..., flexMillis) in termux-job-scheduler #703

Open kuseni opened 2 months ago

kuseni commented 2 months ago

Expose setPeriodic (..., flexMillis) in termux-job-scheduler for more accurate job run.

setPeriodic (long intervalMillis) - Specify that this job should recur with the provided interval, not more than once per period. You have no control over when within this interval this job will be executed, only the guarantee that it will be executed at most once within this interval.

vs

setPeriodic (long intervalMillis, long flexMillis) - Specify that this job should recur with the provided interval and flex. The job can execute at any time in a window of flex length at the end of the period.