Crates.io | async-priority-queue |
lib.rs | async-priority-queue |
version | 0.1.1 |
source | src |
created_at | 2021-01-13 17:34:47.774068 |
updated_at | 2021-01-13 17:42:40.818714 |
description | An async-aware priority queue |
homepage | |
repository | https://github.com/zesterer/async-priority-queue |
max_upload_size | |
id | 341457 |
size | 20,343 |
async-priority-queue
An async-aware priority queue.
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);
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
).