Transformer Pipeline Module API Reference (JavaScript)
8.0.2.290852-a608fcd3
|
The functions in this package provider timer management for pipeline scripts.
Timers are one-shot events that can only be set in the future, i.e. if an attempt is made to make the timer fire in the past, then the call to timer.add will fail.
Functions | |
timer.addTimer (var ttab) | |
Add a new timer to the system. More... | |
timer.deleteTimer (var identifier) | |
Remove a timer from the system,. More... | |
timer.addTimer | ( | var | ttab | ) |
Add a new timer to the system.
ttab | - Table |
nil | - Inappropriate timestamp |
The time may either be an offset from the current time in seconds or a fully qualified timestamp in the form: %Y-%m-%dT%H:%M:%SZ If the time obtained from the timestamp has passed, then nil
will be returned and the timer won't be set.
The handle returned should be regarded as opaque and not inspected.
The following example adds a timer to fire in 15 seconds
timer.deleteTimer | ( | var | identifier | ) |
Remove a timer from the system,.
identifier | - Timer identifier |
The handle supplied to that function, is the same as that returned by