parent
c62661e5a7
commit
3d463a14aa
|
@ -1,5 +1,5 @@
|
|||
function createMutex(doWork) {
|
||||
const mutex = {};
|
||||
const mutex = Object.create(null);
|
||||
|
||||
return (key, payload, callback) => {
|
||||
if (mutex[key]) {
|
||||
|
|
Loading…
Reference in New Issue