From fff333f89ba99f32171641f0e8d78c9cdfe291b4 Mon Sep 17 00:00:00 2001 From: Songtronix Date: Mon, 23 Mar 2020 15:54:23 +0100 Subject: Add example for download with progress tracking --- examples/download_progress/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 examples/download_progress/README.md (limited to 'examples/download_progress/README.md') diff --git a/examples/download_progress/README.md b/examples/download_progress/README.md new file mode 100644 index 00000000..c6311163 --- /dev/null +++ b/examples/download_progress/README.md @@ -0,0 +1,15 @@ +## Download Progress + +Downloading a file asynchronously with a `Subscription` while displaying the progress with a `ProgressBar`. + +
+ + + +
+ +You can run it with `cargo run`: + +``` +cargo run --package download_progress +``` -- cgit From 8e073d10d71f80077b843c49013a8bdfeb5a7f44 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 23 Mar 2020 21:04:20 +0100 Subject: Update `README` of examples --- examples/download_progress/README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'examples/download_progress/README.md') 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.
- - + +
-- cgit