by peterjuras · 10y ago · 0 comments
async someNetworkCall() {
let unlock = await this.m.lock();
try {
const result = await doSomethingAsynchronous();
// handle result
} catch (exception) {
// handle error
}
unlock();
}No comments yet.