observable-tree 0.1.0

Reactive Observable BTree
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use observable_tree::BTree;

#[tokio::main]
async fn main() {
    let btree = BTree::start(1000);

    let ins = btree.insert("hello".to_string(), 546).await;
    assert!(ins.unwrap().is_none());

    let cont = btree.contains("hello".to_string()).await;
    assert!(cont.unwrap());

    print!("Done!")
}