I have a function in my Redux reducer that makes a few async calls to get product description, then downloads a catalog of images to the local storage and then sets the descriptions to the redux state.
I want to be able to stop the function no matter at which point of execution it is on Cancel button press. I know that JS is single-threaded but I'm just wondering if there is a workaround