Basic thread run routine
continuous-integration/drone/push Build is passing

Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
This commit is contained in:
juju committed 2022-12-31 12:05:20 +01:00
1 parent 2522ece23f
commit 3a8167b6ad
6 files changed
+127 -81

No files matched your search

+4
View File
@@ -80,6 +80,10 @@ impl<T> AsyncMutex<T> {
}
}
pub fn force_unlock(&self) {
self.lock.drop();
}
pub async fn lock(&self) -> AsyncMutexGuard<'_, T> {
self.lock.clone().await;
AsyncMutexGuard { mutex: self }
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.