metarhia/web-locks

Implement locking timeout

tshemsedinov opened this issue · 0 comments

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