Fx.Application.Thread

object Thread extends ExecutionContext

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

Source
Thread.scala
trait ExecutionContext
class Object
trait Matchable
class Any

Def

def apply(fun: => Unit): Unit
def execute(v: 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
def reportFailure(cause: Throwable): Unit
def scheduleEvery(period: Length, f: => Unit): Control
def scheduleEveryIn(delay: Length, period: Length, f: => Unit): Control
def scheduleIn(delay: Length, f: => Unit): 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

Deprecated and Inherited

@deprecated("preparation of ExecutionContexts will be removed", "2.12.0")
def prepare(): ExecutionContext
Deprecated
Inherited from
ExecutionContext