As the title, is there any way to call a function after delay (1 second for example) in Kotlin?
Kotlin
You have to import the following two libraries:
import java.util.* import kotlin.concurrent.schedule
and after that use it in this way:
Timer().schedule(10000){ //do something }