Closed
Description
While working on the repo migration tool, I have noticed that the implementation of in-memory lock in lock-memory.js
behaves in bit weird way as it will acquire lock even if there is already lock in place.
It exposes function locked()
, yet I have not found it used anywhere. But even then I think the correct behavior of any locking functionality should be to fail when there is a lock already present.
I understand that in browser there might not be really concurrent processes, so I am just wondering if that was a design decision or is it a bug?