web-locks icon indicating copy to clipboard operation
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

Basing on the tests, created an example to show how to work with the same resource

This may looks like `locks.release('A');`

enhancement

```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,...