Improve download_progress example

- Use `reqwest` with `Response::chunk` to notify progress.
- Turn example state into an enum
This commit is contained in:
Héctor Ramón Jiménez 2020-03-23 20:34:16 +01:00
parent fff333f89b
commit 30c7db3f25
3 changed files with 123 additions and 120 deletions

View file

@ -6,8 +6,7 @@ edition = "2018"
publish = false
[dependencies]
iced = { path = "../.." }
iced = { path = "../..", features = ["tokio"] }
iced_native = { path = "../../native" }
iced_futures = { path = "../../futures" }
async-std = { version = "1.0", features = ["unstable"] }
isahc = "0.9.1"
reqwest = "0.10"