Module is.codion.common.model
Package is.codion.common.model.worker
@NullMarked
package is.codion.common.model.worker
Executing background tasks with progress reporting.
-
ClassDescriptionProgressWorker<T,
V> Executes a task on a background thread, invoking its lifecycle handlers on the dispatch context resolved byDispatcher— the UI thread on UI platforms, which is what the documentation below calls it.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.