Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an overflow push method #58

Merged
merged 5 commits into from
Mar 30, 2024
Merged

Add an overflow push method #58

merged 5 commits into from
Mar 30, 2024

Commits on Feb 11, 2024

  1. feat: Add an overflow push method

    In some cases it is desired to have a "lossy" queue for data. Such as an
    event queue where more recent events should be prioritized over older
    ones, where infinite storage is impractical. This commit adds a method
    called "force_push" which enables this usage.
    
    Bounded queue code is partially derived from the following commit:
    crossbeam-rs/crossbeam@bd75c3c
    
    cc smol-rs/async-channel#44
    
    Signed-off-by: John Nunley <[email protected]>
    notgull committed Feb 11, 2024
    Configuration menu
    Copy the full SHA
    4820cec View commit details
    Browse the repository at this point in the history
  2. chore: Fix CI errors

    Signed-off-by: John Nunley <[email protected]>
    notgull committed Feb 11, 2024
    Configuration menu
    Copy the full SHA
    898ff46 View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2024

  1. docs: Add more documentation to push_or_else

    Signed-off-by: John Nunley <[email protected]>
    notgull committed Mar 23, 2024
    Configuration menu
    Copy the full SHA
    a12fcbd View commit details
    Browse the repository at this point in the history
  2. chore: fmt

    Signed-off-by: John Nunley <[email protected]>
    notgull committed Mar 23, 2024
    Configuration menu
    Copy the full SHA
    7e8b785 View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2024

  1. docs: Fix comment

    Signed-off-by: John Nunley <[email protected]>
    notgull committed Mar 30, 2024
    Configuration menu
    Copy the full SHA
    5a0de42 View commit details
    Browse the repository at this point in the history