anandwana001 / ogTagParser

📲 Kotlin library to parse open graph tags
http://anandwana001.github.io/
Apache License 2.0
20 stars 3 forks source link

Improve use of Coroutine #8

Open anandwana001 opened 4 years ago

anandwana001 commented 4 years ago

Please consider making a Pull Request if you are capable of doing so.

Description what you'd like to happen: Currently, I had implemented the CoroutineScope to use the CoroutineContext to access the job instance. As per the doInBackground(), using withContext() with a coroutine context. Need to have the same context as above. Make this doInBackground() cancellable as it's a suspend function.