async someNetworkCall() { let unlock = await this.m.lock(); try { const result = await doSomethingAsynchronous(); // handle result } catch (exception) { // handle error } unlock(); }