Created
February 22, 2021 21:11
-
-
Save le0nidas/bfa456a44a6aef7ab842c26288eb039d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun main() { | |
val saveUserTasks = SaveUserTasks() | |
val applyDownloadedSettings = ApplyDownloadedSettings() | |
while (!saveUserTasks.isFinished || !applyDownloadedSettings.isFinished) { | |
saveUserTasks(7) | |
applyDownloadedSettings() | |
} | |
println("done!") | |
} | |
/* | |
loading a user... | |
user loaded | |
downloading settings... | |
settings downloaded | |
loading tasks for provided user... | |
tasks loaded | |
applying settings... | |
setting applied | |
saving provided tasks... | |
done! | |
/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment