Async Manager
Advanced Push/Polling manager for Vaadin Flow
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:
AsyncManager.register(this, asyncTask -> {
SomeData result = doHeavyLifting();
asyncTask.push(() -> showData(result));
})
But don't stop here, read the full story.
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)
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
- Fix concurrency issue
- Released
- 2020-05-29
- Maturity
- STABLE
- License
- Apache License 2.0
Compatibility
- Framework
- Vaadin 10+
- Vaadin 11+ in 1.0.0-alpha4
- Browser
- Browser Independent