LiquidScheduler takes a
name timer, a
std::vector<char> payload object, and an
uint32_t seconds interval/deferred schedule time as its parameters. Multiple timers may be used within the same contract. For example, if a contract deals with multiple accounts, a timer can be set up for each account. The
payload parameter can be used to pass data to the
timer_callback function, (or
start_interval for intervals) which is used to run the scheduled task/interval. At the end of the
timer_callback is a return response to reschedule the transaction if needed. If the return is truthy, the task will reschedule again based on the interval passed, if it is false, the task will not be rescheduled.