Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
fun main() {
val state = State()
println("Call #1:")
saveUserTasks(7, state)
println("Call #2:")
saveUserTasks(7, state)
println("Call #3:")
saveUserTasks(7, state)
println("done!")
}
// results in:
/*
Call #1:
loading a user...
user loaded
Call #2:
loading tasks for provided user...
tasks loaded
Call #3:
saving provided tasks...
done!
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment