How to lock on object which shared by multiple async method in nodejs?
I have one object with different properties in nodejs, there are different async function which access and modify that object with some complex execution. A single async function may have internal callbacks (or async functions), that may take some time to execute and then that function will modify that object. I want to lock that object until I’m done with all modification, only after that any other async function will access it.