diff options
author | Teddy Wing | 2021-06-07 01:22:39 +0200 |
---|---|---|
committer | Teddy Wing | 2021-06-07 01:25:00 +0200 |
commit | de2d6a2ddf747cc7d5d370b69e26e8355b00f1d4 (patch) | |
tree | eece39ad10565e2ddf4220deb85f7fe406b6ef68 /Cargo.toml | |
parent | 0da2cb98c759e59772a489b73e91164c6a8f5fe9 (diff) | |
download | reflectub-de2d6a2ddf747cc7d5d370b69e26e8355b00f1d4.tar.bz2 |
Switch `futures::executor` to Tokio runtime
Use the Tokio runtime we created to run the blocking async tasks.
Trying to set this up so I can get results back from the spawned tasks,
but I'm currently having trouble working out how to extract them from
the async task and return them from `run()`. I suppose I could just
print out the errors directly in that `while let` loop, but ideally I'd
like to return all errors from `run()` rather than printing in `run()`.
Diffstat (limited to 'Cargo.toml')
-rw-r--r-- | Cargo.toml | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -16,6 +16,7 @@ reqwest = { version = "0.11.3", features = ["json"] } serde = { version = "1.0.126", features = ["derive"] } thiserror = "1.0.25" tokio = { version = "1.6.1", features = ["macros", "rt-multi-thread"] } +tokio-stream = "0.1.6" [dependencies.sqlx] version = "0.5.5" |