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

Implement locking timeout

Open tshemsedinov opened this issue 4 years ago • 0 comments

await locks.request('A', { timeout: 5000 }, async () => {
  // resource will be released if this function will not end before timeout
});

tshemsedinov avatar Mar 15 '20 00:03 tshemsedinov