Skip to content

Commit 490f69f

Browse files
authored
duplicate wait instead of wait and notify
original was ``` notify(typedArray: Int32Array, index: number, count: number): number; ``` it seems to be a mistake, the real method is `notify` (the first wait is fine) https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/notify
1 parent a139303 commit 490f69f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/es2017.sharedmemory.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ interface Atomics {
103103
* Wakes up sleeping agents that are waiting on the given index of the array, returning the
104104
* number of agents that were awoken.
105105
*/
106-
wake(typedArray: Int32Array, index: number, count: number): number;
106+
notify(typedArray: Int32Array, index: number, count: number): number;
107107

108108
/**
109109
* Stores the bitwise XOR of a value with the value at the given position in the array,
@@ -115,4 +115,4 @@ interface Atomics {
115115
readonly [Symbol.toStringTag]: "Atomics";
116116
}
117117

118-
declare var Atomics: Atomics;
118+
declare var Atomics: Atomics;

0 commit comments

Comments
 (0)