Skip to content

Commit

Permalink
Merge pull request #2 from soooch/use-pollster-in-doc
Browse files Browse the repository at this point in the history
Replace `executor` with `pollster` in doctests.
Closes #1.
  • Loading branch information
sbarral authored Mar 19, 2024
2 parents 16f9090 + 31b6b9c commit abaf544
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ categories = ["asynchronous", "concurrency"]
keywords = ["async", "channel", "oneshot", "reusable", "futures"]

[dev-dependencies]
executor = "0.8"
pollster = "0.3"

[target.'cfg(multishot_loom)'.dependencies]
loom = "0.5"
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
//!
//!
//! ```
//! # use executor;
//! # use pollster;
//! use std::thread;
//!
//! # executor::run(
//! # pollster::block_on(
//! async {
//! let (s, mut r) = multishot::channel();
//!
Expand Down

0 comments on commit abaf544

Please sign in to comment.