dark-std 0.2.18

Thread-safe containers with a read-write separation design borrowed from Golang: reads avoid the container write-lock and never contend with each other; writes are serialized and wait for active readers. Plus async/blocking utilities
Documentation
1
2
3
4
5
6
7
8
9
use dark_std::defer;

#[test]
pub fn test_defer() {
    let a = 0;
    defer!(|| {
        println!("{}", a);
    });
}