Bug in Mutex: onRelease callback not called correctly for queued acquirers
A bug was discovered in the Mutex implementation located in src/Mutex.ts.
When a mutex is acquired while it is already locked, the onRelease callback for the waiting acquirer is not called when the mutex is eventually released to it. This can lead to resource leaks or other incorrect behavior in code that relies on the onRelease callback for cleanup logic.
The issue was that the onRelease function was not being correctly passed along and invoked for queued lock requests.
@Lightning00Blade i found this issue while analysing the code base once recheck it. If you assign this issue to me I can work on this issue
Currently that functionality is not use so very low priority. I would consider removing rather then fixing it. Feel free to send a PR.