tick-queue

Crates.iotick-queue
lib.rstick-queue
version0.0.3
sourcesrc
created_at2024-10-15 14:07:06.127752
updated_at2024-10-25 09:19:59.137908
descriptionTick ordered queue
homepage
repositoryhttps://github.com/piot/tick-queue
max_upload_size
id1409505
size16,829
Peter Bjorklund (piot)

documentation

README

🏃‍♂️ tick-queue

Crates.io Documentation

tick-queue is a Rust library designed to manage a sequence of items in a strick tick order. Each item is associated with a unique TickId, ensuring items are kept in a correct order.

✨ Features

  • Step Management: Queue items with associated TickId to ensure correct processing.
  • Iterator Support: Iterate through items with both standard and indexed iteration.
  • Flexible Item Handling: Push, pop, and take items from the queue with tick validation.
  • Error Handling: Robust error handling for cases such as incorrect TickId order.

🚀 Getting Started

Add tick-queue to your Cargo.toml:

[dependencies]
tick-queue = "0.0.3"
Commit count: 4

cargo fmt