diff --git a/README.md b/README.md index 80ceb622..aba61ce0 100644 --- a/README.md +++ b/README.md @@ -195,7 +195,7 @@ Here is a similar program to the previous example, but using asynchronous cache // [dependencies] // moka = { version = "0.7", features = ["future"] } // tokio = { version = "1", features = ["rt-multi-thread", "macros" ] } -// futures = "0.3" +// futures-util = "0.3" // Use the asynchronous cache. use moka::future::Cache; @@ -240,7 +240,7 @@ async fn main() { .collect(); // Wait for all tasks to complete. - futures::future::join_all(tasks).await; + futures_util::future::join_all(tasks).await; // Verify the result. for key in 0..(NUM_TASKS * NUM_KEYS_PER_TASK) { diff --git a/src/future/cache.rs b/src/future/cache.rs index 239663b9..efdf53e4 100644 --- a/src/future/cache.rs +++ b/src/future/cache.rs @@ -61,7 +61,7 @@ use std::{ /// // [dependencies] /// // moka = { version = "0.7", features = ["future"] } /// // tokio = { version = "1", features = ["rt-multi-thread", "macros" ] } -/// // futures = "0.3" +/// // futures-util = "0.3" /// /// use moka::future::Cache; /// @@ -146,7 +146,7 @@ use std::{ /// // [dependencies] /// // moka = { version = "0.7", features = ["future"] } /// // tokio = { version = "1", features = ["rt-multi-thread", "macros" ] } -/// // futures = "0.3" +/// // futures-util = "0.3" /// /// use std::convert::TryInto; /// use moka::future::Cache; @@ -208,7 +208,7 @@ use std::{ /// // [dependencies] /// // moka = { version = "0.7", features = ["future"] } /// // tokio = { version = "1", features = ["rt-multi-thread", "macros" ] } -/// // futures = "0.3" +/// // futures-util = "0.3" /// /// use moka::future::Cache; /// use std::time::Duration; @@ -395,7 +395,7 @@ where /// // /// // [dependencies] /// // moka = { version = "0.7", features = ["future"] } - /// // futures = "0.3" + /// // futures-util = "0.3" /// // tokio = { version = "1", features = ["rt-multi-thread", "macros" ] } /// use moka::future::Cache; /// use std::sync::Arc; @@ -486,7 +486,7 @@ where /// // /// // [dependencies] /// // moka = { version = "0.7", features = ["future"] } - /// // futures = "0.3" + /// // futures-util = "0.3" /// // reqwest = "0.11" /// // tokio = { version = "1", features = ["rt-multi-thread", "macros" ] } /// use moka::future::Cache;