Cancelation of eclipse update would take 3-4 minutes, Why?
Thank开发者_运维技巧s.
Any time software has a cancel button it is not (usually) killing the process/thread that you are working on. You can see this same cancel (and wait) behavior in many applications. This is why the Mac has Force Quit and Windows has Exit Now for applications that don't seem to be quiting.
So at the code level, why this is happening is that you have likely only set a flag that says, "stop doing this once you're done with whatever loop you're in right now". What happens is that you set the flag, but the loop is nowhere near complete and doesn't check every once in a while that the cancel flag has been triggered. So there likely isn't much you can do about it besides download the source code and submit a patch.
精彩评论