Skip to content

Instantly share code, notes, and snippets.

@le0nidas
Created February 22, 2021 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save le0nidas/d5d1f387a55cd60ecf74c3c9125885ca to your computer and use it in GitHub Desktop.
Save le0nidas/d5d1f387a55cd60ecf74c3c9125885ca to your computer and use it in GitHub Desktop.
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