raulraja
03/04/2018, 2:00 PMIO.async()
.async { callback: (Either<Throwable, Int>) -> Unit ->
userFromDatabaseObservable().subscribe({ user: User ->
callback(user.left())
}, { error: Exception ->
callback(error.right())
})
}
stepango
03/04/2018, 2:03 PMIO.async()
.async { ... }
vs
IO.async { ... }
?