Skip to content

Commit

Permalink
README: updated description and fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Amjad50 authored Feb 25, 2024
1 parent 21913e7 commit 0bc52bc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,18 @@ maybe I won't call it `lock-free` in the strict sense.
The API of the `blinkcast` is similar to that of the `std::sync::mpsc` channels.
However, there are some differences:

- It allows for multiple consumers (receivers) and multiple prodocuers (senders).
- It allows for multiple consumers (receivers) and multiple producers (senders).
- The channel broadcasts every send to every consumer.
- Lossy, the sender will overwrite old data, so receivers must be quick or they will lose the old data (don'
t blink).
- Implemented for `no_std` environments.

Due to that nature, this is useful in applications where data comes in very quick and new data is always more important
than old data which can be discarded.
This could be useful for example in implementing audio driver, where a small glitch but staying
up to date is better than delayed audio.
This could be useful for example in implementing:
- audio driver (small glitch but staying up to date is better than delayed audio).
- mouse/keyboard driver with big enough buffer.
- etc...

See [the documentation](https://docs.rs/blinkcast) for examples.

Expand Down

0 comments on commit 0bc52bc

Please sign in to comment.