skrypton-api / com.waicool20.skrypton.jni.objects / SKryptonApp / runOnMainThread

runOnMainThread

fun runOnMainThread(action: () -> Unit): Unit

Executes the given action on the thread where SKryptonApp exists. This is similar to the Platform.runLater method.

Parameters

action - Action to be executed.