caarmen / poet-assistant

Android app with rhyming dictionary, thesaurus, and dictionary, with text-to-speech functionality to read your poem.
Other
83 stars 11 forks source link

Issue 144: Use coroutines instead of Handlers. #145

Closed caarmen closed 6 years ago

caarmen commented 6 years ago

Handlers were used in two places to post a Runnable with a delay, on the main thread.

Replace this with the delay() function of Kotlin coroutines, and encapsulate this in the Threading interface.