Fx.Application.Thread

object Thread extends scala.concurrent.ExecutionContext

Thread represents "FX Application Thread", the only one allowed to modify GUI controls

Source
Thread.scala
trait scala.concurrent.ExecutionContext
class java.lang.Object
trait scala.Matchable
class Any

Def

def apply(fun: => Unit): Unit
def execute(v: java.lang.Runnable): Unit

Runs function on FX Application Thread

Runs function on FX Application Thread

If current thread is FX Application Thread, the function is run immediately

Otherwise it is scheduled for later

Source
Thread.scala
def is: Boolean

FX Application Thread check

FX Application Thread check

Returns true if current thread is "FX Application Thread"

Source
Thread.scala
@scala.deprecated("preparation of ExecutionContexts will be removed", "2.12.0")
def prepare(): scala.concurrent.ExecutionContext
Deprecated
Inherited from
ExecutionContext
def reportFailure(cause: scala.Throwable): Unit
def scheduleEvery(period: Time.Length, f: => Unit): Fx.Event.Control
def scheduleEveryIn(delay: Time.Length, period: Time.Length, f: => Unit): Fx.Event.Control
def scheduleIn(delay: Time.Length, f: => Unit): Fx.Event.Control

Runs function on FX Application Thread with delay

Runs function on FX Application Thread with delay

Schedule the function to run once

Source
Thread.scala