Answer the question
In order to leave comments, you need to log in
How to wait for an asynchronous method to execute?
Hey!
The situation is as follows - I have a certain API on Kotlin, which has a method that I really need. This method, as I understand it, has a handler and I get its result asynchronously and can only execute the code in the received onSuccess callback. But I need to get the results of this method synchronously.
How can this be done?
Answer the question
In order to leave comments, you need to log in
I get its result asynchronously and can only execute the code in the received onSuccess callback.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question