Please help me. Is it possible to implement multi timer For different tasks ?
Time should be different for different tasks
alt text
Please help me. Is it possible to implement multi timer For different tasks ?
Time should be different for different tasks
alt text
Look into Timers:
Consider using actor components for this, each Task is an actor component with its own widget and Timer.
Ths! But, I did everything as a lesson, but only one Timer works. I think how to put a timer in an array of values, so that each task has its own timer, which works in parallel.
I have formed a task number. + A timer is created. But he one, and I as can’t add the second timer by means of the array
You can store Timer Handles in an array. But that would be unnecessary if you used components for this as I suggested.
Each component is instanced and has a life of its own, you can retrieve its Timer Handle at any time and add it to an array if you wish to.
edit: your images do not work
I’m not good at arrays, for me it is very difficult
Consider using subject components for this, each task is a subject component with its own widget and timer.
I think this is a good decision, but how to do it?
Thank you very much!