@Deprecated
public class BackgroundTaskWrapper<T,V>
extends java.lang.Object
BackgroundWorker
Constructor and Description |
---|
BackgroundTaskWrapper()
Deprecated.
|
BackgroundTaskWrapper(io.jmix.ui.executor.BackgroundTask<T,V> task)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Deprecated.
Cancel running task if there is any.
|
V |
getResult()
Deprecated.
If there is running task, block until its completion and return result.
|
void |
restart()
Deprecated.
Cancel running task if there is at the moment.
|
void |
restart(io.jmix.ui.executor.BackgroundTask<T,V> task)
Deprecated.
Cancel running task if there is at the moment.
|
public BackgroundTaskWrapper(@Nullable io.jmix.ui.executor.BackgroundTask<T,V> task)
public BackgroundTaskWrapper()
public void restart()
public void restart(io.jmix.ui.executor.BackgroundTask<T,V> task)
task
- task to start, also will be saved for future restarts@Nullable public V getResult()
public void cancel()