Is there a way to stop the background thread?
javmarina opened this issue · 2 comments
javmarina commented
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?
prof18 commented
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.
prof18 commented
Fixed with release 2.0.5