swc/crates/better_scoped_tls
2022-04-04 20:12:03 +09:00
..
src chore: Update rustc (#3768) 2022-02-28 16:12:28 +09:00
Cargo.toml chore(ci): Fix benchmark action (#4242) 2022-04-04 20:12:03 +09:00
README.md feat(api/rust): Improve error messages for wrong usages of scoped thread-local variables (#3606) 2022-02-17 08:11:46 +00:00

better_scoped_tls

This crate provides an opinionated version of scoped-tls.

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.