fun runOnMainThread(action: () -> Unit): Unit
Executes the given action on the thread where SKryptonApp exists. This is similar to the Platform.runLater method.
action - Action to be executed.
action