Skip to content

Commit

Permalink
Merge branch 'main' into a11y-relocation
Browse files Browse the repository at this point in the history
  • Loading branch information
hkolbeck authored Jul 26, 2023
2 parents 71fdaa3 + 360088a commit acfb8c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ browser-compat: javascript.builtins.Atomics.notify
The **`Atomics.notify()`** static
method notifies up some agents that are sleeping in the wait queue.

> **Note:** This operation works with a shared {{jsxref("Int32Array")}}
> only.
> **Note:** This operation only works with an {{jsxref("Int32Array")}} or {{jsxref("BigInt64Array")}} that views a {{jsxref("SharedArrayBuffer")}}.
> It will return `0` on non-shared `ArrayBuffer` objects.
## Syntax
Expand All @@ -23,7 +22,7 @@ Atomics.notify(typedArray, index, count)
### Parameters

- `typedArray`
- : A shared {{jsxref("Int32Array")}}.
- : An {{jsxref("Int32Array")}} or {{jsxref("BigInt64Array")}} that views a {{jsxref("SharedArrayBuffer")}}.
- `index`
- : The position in the `typedArray` to wake up on.
- `count` {{optional_inline}}
Expand All @@ -38,7 +37,7 @@ Atomics.notify(typedArray, index, count)
### Exceptions

- {{jsxref("TypeError")}}
- : Thrown if `typedArray` is not a {{jsxref("Int32Array")}}.
- : Thrown if `typedArray` is not an {{jsxref("Int32Array")}} or {{jsxref("BigInt64Array")}} that views a {{jsxref("SharedArrayBuffer")}}.
- {{jsxref("RangeError")}}
- : Thrown if `index` is out of bounds in the `typedArray`.

Expand Down Expand Up @@ -83,3 +82,4 @@ Atomics.notify(int32, 0, 1);

- {{jsxref("Atomics")}}
- {{jsxref("Atomics.wait()")}}
- {{jsxref("Atomics.waitAsync()")}}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The **`Atomics.waitAsync()`** static method waits asynchronously on a shared mem

Unlike {{jsxref("Atomics.wait()")}}, `waitAsync` is non-blocking and usable on the main thread.

> **Note:** This operation only works with a shared {{jsxref("Int32Array")}} or {{jsxref("BigInt64Array")}}.
> **Note:** This operation only works with an {{jsxref("Int32Array")}} or {{jsxref("BigInt64Array")}} that views a {{jsxref("SharedArrayBuffer")}}.
## Syntax

Expand Down

0 comments on commit acfb8c4

Please sign in to comment.