Hi,
BackgroundTaskHandler or taskExecutor which one is better? Currently, I am using taskExecutor but most of the time thread goes missing response is not updated or tracked.
Any other suggestions for Async activity?
Hi,
BackgroundTaskHandler or taskExecutor which one is better? Currently, I am using taskExecutor but most of the time thread goes missing response is not updated or tracked.
Any other suggestions for Async activity?
Hello!
Could you clarify do you mean org.springframework.core.task.TaskExecutor
?
yes org.springframework.core.task.TaskExecutor
I think which is better depends on your goal.
Jmix BackgroundTask
is commonly used form UI “layer” (screens/fragments or views). Using this task you can work with an instance: publish and listen a progress, cancel the task, handle a result, etc.
org.springframework.core.task.TaskExecutor
executes Runnable
without accessing to UI thread which means you cannot update UI according to a task state.
I guess other options are: