Created
July 30, 2018 16:25
-
-
Save JorgeCastilloPrz/b91c36d295c5d2440331a0845ee20e41 to your computer and use it in GitHub Desktop.
RxTest
This file contains hidden or 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
object test { | |
@JvmStatic | |
fun main(args: Array<String>): Unit { | |
val user1 = User(UserId("user1")) | |
val user2 = User(UserId("user2")) | |
val user3 = User(UserId("unknown user")) | |
val dependenciesModule = Module() | |
dependenciesModule.run { | |
repository.allTasksByUser(user1).subscribe({ println(it) }, { println(it) }) | |
repository.allTasksByUser(user2).subscribe({ println(it) }, { println(it) }) | |
repository.allTasksByUser(user3).subscribe({ println(it) }, { println(it) }) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment