osudroid / osu-droid

http://osudroid.moe
Apache License 2.0
498 stars 74 forks source link

Normalize all asynchronous methods in one #337

Closed Reco1I closed 2 months ago

Reco1I commented 2 months ago

In this PR I replace all SyncTaskManager.class and Async.class usages to use Execution alternatives with Kotlin coroutines for asynchronous tasks. That is the composition of the replacements wil be this:

Note: Any task that should be done in update thread it's preferable to use Scene.postRunnable() whenever it's posible..

In Kotlin they can be accessed without class qualifier: