postOnAnimatorThread

fun postOnAnimatorThread(function: () -> Unit)

Execute function on animator thread.

If called after useBackgroundThread from background animator thread - will be executed immediately in the same callchain otherwise will be posted on background animator thread explicitly.

If called after useMainThread from Android Main thread - will be executed immediately in the same callchain otherwise will be posted on Android Main thread explicitly.