[android-components](../../index.md) / [mozilla.components.support.utils](../index.md) / [ThreadUtils](index.md) / [postToMainThreadDelayed](./post-to-main-thread-delayed.md)

# postToMainThreadDelayed

`fun postToMainThreadDelayed(runnable: `[`Runnable`](https://developer.android.com/reference/java/lang/Runnable.html)`, delayMillis: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/support/utils/src/main/java/mozilla/components/support/utils/ThreadUtils.kt#L45)