Skip to content

Commit

Permalink
v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tower120 committed Nov 10, 2024
1 parent 25e2d2c commit 1e44ee7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "chute"
version = "0.1.1"
version = "0.2.0"
license = "MIT OR Apache-2.0"
edition = "2021"
exclude = ["benchmarks", "doc"]
Expand Down
2 changes: 1 addition & 1 deletion examples/mpmc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fn main() {
s.spawn(move || {
let mut sum = 0;
for _ in 0..MESSAGES {
// Wait for ths next message.
// Wait for the next message.
let msg = loop {
if let Some(msg) = reader.next() {
break msg;
Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
//!
//! In general, using `Arc<spin::Mutex<spmc::Queue<T>>>` is more performant
//! than `Arc<mpmc::Queue<T>>` from writer perspective.
//! But! Writing simultaneously from several threads is faster with [mpmc].
//!
//! Read performance identical.
//! But! Writing simultaneously from several threads is much faster with [mpmc].
//!
//! The read performance is almost equal, with a slight advantage for [spmc].
//!
//! # Order
//!
Expand Down
2 changes: 1 addition & 1 deletion src/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/// with message BEFORE consuming the next one.
/// Because of this, it does not implement [Iterator]. But [ClonedReader] does.
///
/// We expect it to be mainly used with reader in this way:
/// We expect it to be mainly used in this way:
/// ```
/// # let queue: chute::spmc::Queue<usize> = Default::default();
/// # let mut reader = queue.reader();
Expand Down

0 comments on commit 1e44ee7

Please sign in to comment.