Package kotlinx.coroutines.javafx

Provides Dispatchers.JavaFx context and Dispatchers.Main implementation for JavaFX UI applications.

Types

JavaFxDispatcher

sealed class JavaFxDispatcher : 
    MainCoroutineDispatcher,
    Delay

Dispatcher for JavaFx application thread with support for awaitPulse.

Extensions for External Classes

kotlinx.coroutines.Dispatchers

Functions

awaitPulse

suspend fun awaitPulse(): Long

Suspends coroutine until next JavaFx pulse and returns time of the pulse on resumption. If the Job of the current coroutine is completed while this suspending function is waiting, this function immediately resumes with CancellationException.