Cancel a compresssing/decompressing

There is no demo showing how to cancel a compresssing/decompressing method.
Would you please provide me a demo?
Thanks.

@ducaisoft

Please refer to the following article to achieve your requirement. Hope this helps you.
Cancel ZIP archive creation