Skip to content

I20240623-1800

@laeubi laeubi tagged this 23 Jun 17:22
While the methods to perform an operation with busy indication are
already a great help to write responsive UI there is one case missing
where a (Completable)Future is already present, this can for example be
used to cache some heavy work.

This now adds a new BusyIndicator.showWhile(Future) method that covers
the use case of an externally provided future computation so the caller
can be sure that while it takes place the UI shows an indicator.

Beside that the Snippet30 was enhanced to demonstrate the new function.
Apply language suggestions from code review

Co-authored-by: Ed Merks <Ed.Merks@gmail.com>
Co-authored-by: Sebastian Zarnekow <Sebastian.Zarnekow@gmail.com>
Assets 2
Loading