Вот код: < /p>
Код: Выделить всё
fun postNewRequest(
type: ProductType,
product: Product,
)
coroutineScope.launch { updateIfneeded(product) }
OrdersManager.getInstance().postRequest(
type = productType,
product = product,
isEnable = true
).subscribeOn(Schedulers.computation())
fun updateIfneeded(product Product) {
if (product.id == null)
product.error = "Error"
else
product.error = ""
}
< /code>
любая идея
? < /p>
Подробнее здесь: https://stackoverflow.com/questions/795 ... time-issue
Мобильная версия