summaryrefslogtreecommitdiffstats
path: root/examples/download_progress/README.md
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2020-03-23 21:36:26 +0100
committerLibravatar GitHub <noreply@github.com>2020-03-23 21:36:26 +0100
commit784b8ee74c15f682b5bab74ac7d475fbed20e937 (patch)
tree3802215b31cdc71749ae7ae6eda948fffa1b2fba /examples/download_progress/README.md
parent092e9fb4cc3edcf2083b4464d24d50c82a1163d2 (diff)
parent8e0dcd212d71ff334aa590ee3b565da7b8d24713 (diff)
downloadiced-784b8ee74c15f682b5bab74ac7d475fbed20e937.tar.gz
iced-784b8ee74c15f682b5bab74ac7d475fbed20e937.tar.bz2
iced-784b8ee74c15f682b5bab74ac7d475fbed20e937.zip
Merge pull request #232 from Songtronix/songtronix/add-download-example
Add example for download with progress tracking
Diffstat (limited to '')
-rw-r--r--examples/download_progress/README.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/download_progress/README.md b/examples/download_progress/README.md
new file mode 100644
index 00000000..c606c5f9
--- /dev/null
+++ b/examples/download_progress/README.md
@@ -0,0 +1,17 @@
+## Download progress
+
+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.
+
+<div align="center">
+ <a href="https://gfycat.com/wildearlyafricanwilddog">
+ <img src="https://thumbs.gfycat.com/WildEarlyAfricanwilddog-small.gif">
+ </a>
+</div>
+
+You can run it with `cargo run`:
+
+```
+cargo run --package download_progress
+```