T
Size: a a a
T
L
launch(UI) {
try {
var token = ""
FirebaseInstanceId.getInstance().instanceId.addOnCompleteListener { result ->
token = result.result.token
}
val result = withContext(DefaultDispatcher) {
authInteractor.requestAccess(token)
}
when (result) { /* some stuff */}
} catch (e: Exception) { /* handle exception*/ }
}
QH
L
launch(UI) {
try {
var token = ""
FirebaseInstanceId.getInstance().instanceId.addOnCompleteListener { result ->
token = result.result.token
}
val result = withContext(DefaultDispatcher) {
authInteractor.requestAccess(token)
}
when (result) { /* some stuff */}
} catch (e: Exception) { /* handle exception*/ }
}
SG
SG
QH
Д
RC
Д
Д
T
T
В
M
M
T
Д
QH
val count = basket.items.sumBy { it.count }
QH
basket.items.reduce { acc, it -> acc + it.count }