mutex_timeouts/
lib.rs

1pub mod std;
2#[cfg(feature = "tokio")]
3pub mod tokio;
4
5#[cfg(test)]
6mod tests {
7    use ::std::time::Duration;
8    use super::*;
9
10    #[test]
11    fn test_lock() {
12        let mutex = std::MutexWithTimeout::new_with_timeout((), Duration::from_secs(1));
13        let _guard = mutex.lock().unwrap();
14    }
15}