File: README.md

package info (click to toggle)
rust-swc-core 22.2.1~ds-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 62,436 kB
  • sloc: javascript: 853; xml: 538; sh: 307; makefile: 35; python: 5
file content (11 lines) | stat: -rw-r--r-- 414 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
# better_scoped_tls

This crate provides an opinionated version of [scoped-tls](https://docs.rs/scoped-tls/1.0.0/scoped_tls/index.html).

Scoped thread local variables created by this crate will panic with a good message on usage without `.set`, like

```
You should perform this operation in the closure passed to `set` of better_scoped_tls::tests::TESTTLS
```

Syntax is exactly same to the original scoped-tls.