prof18/RSS-Parser

Is there a way to stop the background thread?

javmarina opened this issue · 2 comments

Until now, as Parser was just an AsyncTask, I would call parser.cancel(boolean mayInterruptIfRunning). However, this is no longer possible. Is there a way to interrupt or cancel the background processing with the new system?

If you are using Kotlin, you can simply cancel the job, like in the sample code:

Instead, If you are using Java, in the next version the method cancel() will be available in the Parser class.

Fixed with release 2.0.5