async-priority-queue 0.1.1

An async-aware priority queue
Documentation
  • Coverage
  • 92.31%
    12 out of 13 items documented0 out of 12 items with examples
  • Size
  • Source code size: 24.18 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.22 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • zesterer/async-priority-queue
    3 2 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • zesterer

async-priority-queue

crates.io crates.io License

An async-aware priority queue.

Example

let queue = PriorityQueue::new();

queue.push(3);
queue.push(1);
queue.push(2);

assert_eq!(queue.pop().await, 3);
assert_eq!(queue.pop().await, 2);
assert_eq!(queue.pop().await, 1);

License

I originally wrote this crate during employment by IOTA Stiftung. IOTA still legally owns the code, but it was licensed under Apache 2.0, meaning that I have the right to modify and redistribute it under my own name.

async-priority-queue is distributed under the Apache License, Version 2.0 (see LICENSE).