Home » Android » kotlin – Can I delay code in sequence in Android Studio?-Exceptionshub

kotlin – Can I delay code in sequence in Android Studio?-Exceptionshub

Posted by: admin February 26, 2020 Leave a comment

Questions:

I am trying to delay code in sequence in android studio? ie. something like so:

delay(1000)
//code 1
delay(1000)
//code 2

Which will delay 1 second before executing code 1, then wait an additional 1 second after that before executing code 2

How to&Answers: