Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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