Skip to content

Blocking locking in tokio async context debugging tool

Notifications You must be signed in to change notification settings

koivunej/strident-mutex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Nov 30, 2022
218527d · Nov 30, 2022

History

1 Commit
Nov 30, 2022
Nov 30, 2022
Nov 30, 2022
Nov 30, 2022

Repository files navigation

noisy- screaming- strident-mutex

A wrapper around std::sync::{Mutex, RwLock} that panicks if used within tokio async context. Not useful as a general crate, but it might be useful if you are hunting down or trying to get an understanding of blocking mutex usage in async context.

Features

  • hide_async_test_panic, enabled by default

hide_async_test_panic uses an crate internal mutex to remove the current global panic hook, and restores it after the test.

Naming

strident sorts after std, so you might end up with nice diffs:

-use std::sync::Mutex;
+use strident_mutex::sync::Mutex;

About

Blocking locking in tokio async context debugging tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages