web-locks
web-locks copied to clipboard
Web Locks API 🔒
Results
15
web-locks issues
Sort by
recently updated
recently updated
newest added
Implement: - [ ] `AbortSignal` - [ ] `AbortError` - [ ] `AbortController` - [ ] `LockOptions { signal: controller.signal }` See: https://wicg.github.io/web-locks/
Refs: https://github.com/metarhia/web-locks/pull/25
Relates to #16
Basing on the tests, created an example to show how to work with the same resource
```js await locks.request('A', { timeout: 5000 }, async () => { // resource will be released if this function will not end before timeout }); ```
enhancement
There can be two priority modes: - **all-threads** - all request will be added with equal priority (thread independent); - **thread-first** - if lock will leave resource in certain thread,...