I have a method which scraps data from a website inside a thread and then give me a total count of data retrieved.
When i press cancel button Thread.interrupt() is called and data is scrapped for a few seconds and then it stops and give me a total count of data retrieved.
Does calling Thread.interrupt() stops a thread from executing immediately or does it take few seconds to completely stop?