Directory

Async Manager - Vaadin Add-on Directory

Advanced Push/Polling manager for Vaadin Flow Async Manager - Vaadin Add-on Directory
# Async Manager for Vaadin Flow Async Manager is a simple helper that comes to the rescue when you need to do some heavy computation and update views in a deferred manner. It is very easy to use: ```java AsyncManager.register(this, asyncTask -> { SomeData result = doHeavyLifting(); asyncTask.push(() -> showData(result)); }) ``` But don't stop here, read the [full story](https://github.com/fluorumlabs/async-manager/blob/master/README.md). The following features are implemented: - Push and polling modes - Adaptive polling intervals (for example, 5 times per first second, then once per second) - Automatic worker thread termination when user leaves the view or UI is detached - Thread pooling - Support for custom exception handlers (for logging or reporting)
View on GitHub
Source Code
Discussion Forum
Issue tracker

Async Manager version 1.0.0-alpha1
Initial prerelease

Async Manager version 1.0.0-alpha2
- Added support for setting custom `ExecutorService`

Async Manager version 1.0.0-alpha3
- Fix concurrency issues

Async Manager version 1.0.0-alpha4
- Supply AsyncTask context to exception handler

Async Manager version 1.0.0-beta1
- Handle exceptions in AsyncTask.push - ComponentUtils.setData instead of static map to track tasks

Async Manager version 1.0.0-beta2
- Added `asyncTask.allowThreadInterrupt` and `asyncTask.preventThreadInterrupt` for more control over thread lifecycle - Improved exception handling

Async Manager version 1.0.0-rc1
- Improved singleton creation

Async Manager version 1.0.0
- First battle-proven release

Async Manager version 1.1.0-alpha1
- Add support for non-async tasks

Async Manager version 1.1.0
- Fix concurrency issue