use-thread-name 0.1.0

Primitive thread name and count vocabulary for RustUse
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# use-thread-name

Primitive thread name and thread count vocabulary.

`use-thread-name` models thread names and non-zero thread counts as plain values. It does not name actual running threads, create threads, manage threads, or replace `std::thread`.

```rust
use use_thread_name::{ThreadCount, ThreadName};

let name = ThreadName::new("worker").unwrap();
let count = ThreadCount::new(4).unwrap();

assert_eq!(name.as_str(), "worker");
assert_eq!(count.get(), 4);
```