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