Skip to content

zesterer/async-priority-queue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

async-priority-queue

crates.io crates.io License

An async-aware priority queue.

Example

let queue = PriorityQueue::new();

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

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).

About

An async-aware priority queue

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages