Created
February 22, 2021 20:42
-
-
Save le0nidas/d5d1f387a55cd60ecf74c3c9125885ca 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 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