ProgressFuture
A Deferred that also exposes live progress.
Every Deferred member works here: await(), cancel(), awaitAll(...), and onAwait. In addition, progress is a conflated StateFlow of the latest Progress, observable from Compose via progress.collectAsState().
Apply progress policy such as throttling or monotonic bars with a Flow operator, for example progress.sample(100.milliseconds).
Create one with asyncWithProgress, or adapt an existing pair with withProgress. The intended granularity is one ProgressFuture per user-visible operation such as opening a document or downloading a file, not per inner step.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@InternalCoroutinesApi
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Adapts an existing Deferred and an external progress StateFlow into a ProgressFuture.