I'm working a plugin which is working on thousands of products and taking too much time.
I have 2 buttons on my interface and they are "start" and "stop" buttons.
-Start button is executing the schedule task same as the schedule tasks menu.
-Stop button is disposing my task.
As the title say; I have to do this on background when user clicked start instead of waiting the response of get request.
Also how can I dispose my task?
TaskManager is not effective as I expected :(