Commit dc42ccc1 authored by Kyle Clarke's avatar Kyle Clarke 💬

Better docs around begins and expires being ignored by default due to zero values.

parent 82a63ef6
Pipeline #4130660 passed with stage
in 37 seconds
......@@ -151,8 +151,9 @@ is determined by the ***Every*** duration value and submission of ***Run()***.
For example, if you assign an ***Every*** duration of an hour, a ***Begins*** of
12:00pm and ***Run()*** the job at 10:50am, the first ***Every*** will occur at roughly
11:50am and skip to the next ***Every*** iteration due to the ***Begins*** of 12:00pm.
The next ***Every*** at roughly 12:50pm will call the supplied ***Fn*** value. Simply
assign `time.Duration(0)` values to ignore these fields which are zero by default.
The next ***Every*** at roughly 12:50pm will call the supplied ***Fn*** value. By default both
***Begins*** and ***Expires*** are zero valued and therefore ignored. Simply assign `time.Duration(0)`
values to explicitly ignore.
Because Kevin uses reflection to process ***Fn*** and ***FnParams***, empty
interface values are the defined type. The syntax is a little weird on applying
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment