web-locks icon indicating copy to clipboard operation
web-locks copied to clipboard

Implement Symbol usage for resource identification

Open tshemsedinov opened this issue 4 years ago • 0 comments

await locks.request(Symbol('Resource name'), async lock => {
  // use named resource and release it after return
});

tshemsedinov avatar Mar 07 '20 11:03 tshemsedinov