Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(lock): improve CoroutineLock implementation and manage chann…
…els with WeakMap (#814) * refactor(lock): improve CoroutineLock implementation and manage channels with WeakMap * refactor(lock): streamline CoroutineLock channel management and improve owner tracking * fix(lock): handle timeout and closing conditions in CoroutineLock * fix(lock): correct push value in CoroutineLock to ensure proper lock acquisition * fix(lock): improve lock acquisition logic in CoroutineLock to handle push failures and channel closing * fix(lock): ensure proper channel assignment in CoroutineLock during closing conditions * fix(lock): correct lock acquisition logic in CoroutineLock to handle push failures * fix(lock): initialize owners map in CoroutineLock constructor to prevent null reference * fix(lock): remove redundant channel closing check in CoroutineLock to streamline logic * fix(lock): add timer functionality in CoroutineLock to manage lock expiration * fix(lock): update release method to properly pop from channels in CoroutineLock * fix(lock): update release method to include timeout for channel pop in CoroutineLock * fix(lock): simplify constructor initialization in CoroutineLock * fix(lock): refactor timer management in CoroutineLock to use WeakMap for better memory efficiency * fix(lock): improve timer assignment and channel pop handling in CoroutineLock * fix(lock): streamline timer initialization in CoroutineLock constructor --------- Co-authored-by: Deeka Wong <[email protected]>
- Loading branch information