hook_event_name: MessageDisplay

delta: A **mutual exclusion lock** prevents concurrent access to a shared resource, ensuring only one thread runs the critical section at a time.


delta: - Acquiring a locked mutex blocks the caller until the current holder releases it.


delta:
- Failing to release a mutex causes a deadlock, freezing all waiting threads.

```javascript
const { Mutex } = require('async-mutex');

const mutex = new Mutex();


delta:
let counter = 0;

async function increment() {
  const release = await mutex.acquire();
  try {


delta:
    counter++; // only one caller here at a time
  } finally {
    release();
  }
}