I have read the SDK, but it is not so clear for me… I would like to clarify how to correctly use “bc_scheduler” functions.
“bc_scheduler_register” - it is function for “timing” the next run of some function. I specify script name, parameters and tick when it starts (actual tick + some time in miliseconds)
BUT… when the time comes, it runs the specified function and? It finish forever or I need to use “bc_scheduler_unregister”? I thought, that it runs only once and it is unregistered automatically when it finish.
I am sorry, but I didn’t find any documentation for this, just only SDK and I am not sure If I am using SDK correctly, but there is not so much information for me to understand it. I am using it as I have seen in the examples, but I am just guessing how it works by method of trying and errors
I am also not sure about these topics:
- what difference is between relative and absolute scheduling? (relative is just number of miliseconds from now? and absolute is some number of tick?)
- why to use “bc_scheduler_plan_current_from_now” instead of calling some function directly?
- what is difference between “bc_scheduler_plan_current_from_now” and “bc_scheduler_plan_current_relative”? (current spin is not same as current time?)
- what difference is between “bc_tick_get” and “bc_scheduler_get_spin_tick”?
- is it possible to schedule something for forever? Or I need to reschedule the task at the end of the task for next run?
Thanks for clarification. I hope it can help to some other beginner…