Module is.codion.common.model
Package is.codion.common.model.worker
@NullMarked
package is.codion.common.model.worker
Executing background tasks with progress reporting.
-
ClassDescriptionResolves the platform's UI thread, for running
ProgressWorkerhandlers and for determining whether a model refresh should run asynchronously.ProgressWorker<T,V> Executes a task on a background thread, invoking its lifecycle handlers on the UI thread as resolved byDispatcher.Builds aProgressWorkerinstance.Provides builders for a given task type.Provides default handler methods for theProgressWorkerlifecycle.ExtendsProgressWorker.Handlerwith progress and publish handlers.Reports progress and publishes intermediate results for a ProgressWorkerA progress aware background task producing a result.AProgressWorker.ProgressResultTaskcombined withProgressWorker.ProgressHandler, for encapsulating a progress-aware, result-producing background task and its handlers in a single class.A progress aware background task.AProgressWorker.ProgressTaskcombined withProgressWorker.ProgressHandler, for encapsulating a progress-aware background task and its handlers in a single class.A background task producing a result.AProgressWorker.ResultTaskcombined withProgressWorker.Handler, for encapsulating a result-producing background task and its handlers in a single class.A background task.AProgressWorker.Taskcombined withProgressWorker.Handler, for encapsulating a background task and its handlers in a single class.