From 8e073d10d71f80077b843c49013a8bdfeb5a7f44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Mon, 23 Mar 2020 21:04:20 +0100 Subject: [PATCH] Update `README` of examples --- examples/README.md | 1 + examples/download_progress/README.md | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/examples/README.md b/examples/README.md index a7673705..5aea51eb 100644 --- a/examples/README.md +++ b/examples/README.md @@ -73,6 +73,7 @@ A bunch of simpler examples exist: - [`clock`](clock), an application that uses the `Canvas` widget to draw a clock and its hands to display the current time. - [`counter`](counter), the classic counter example explained in the [`README`](../README.md). - [`custom_widget`](custom_widget), a demonstration of how to build a custom widget that draws a circle. +- [`download_progress`](download_progress), a basic application that asynchronously downloads a dummy file of 100 MB and tracks the download progress. - [`events`](events), a log of native events displayed using a conditional `Subscription`. - [`geometry`](geometry), a custom widget showcasing how to draw geometry with the `Mesh2D` primitive in [`iced_wgpu`](../wgpu). - [`integration`](integration), a demonstration of how to integrate Iced in an existing graphical application. diff --git a/examples/download_progress/README.md b/examples/download_progress/README.md index c6311163..c606c5f9 100644 --- a/examples/download_progress/README.md +++ b/examples/download_progress/README.md @@ -1,10 +1,12 @@ -## Download Progress +## Download progress -Downloading a file asynchronously with a `Subscription` while displaying the progress with a `ProgressBar`. +A basic application that asynchronously downloads a dummy file of 100 MB and tracks the download progress. + +The example implements a custom `Subscription` in the __[`download`](src/download.rs)__ module. This subscription downloads and produces messages that can be used to keep track of its progress.
- - + +