From 490f69f984361710b64d59843be378d287c923ba Mon Sep 17 00:00:00 2001 From: Daniel Krom Date: Fri, 21 Dec 2018 10:41:24 +0200 Subject: [PATCH] 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 --- src/lib/es2017.sharedmemory.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/es2017.sharedmemory.d.ts b/src/lib/es2017.sharedmemory.d.ts index 018a2f162a5..1d052d6a988 100644 --- a/src/lib/es2017.sharedmemory.d.ts +++ b/src/lib/es2017.sharedmemory.d.ts @@ -103,7 +103,7 @@ interface Atomics { * Wakes up sleeping agents that are waiting on the given index of the array, returning the * number of agents that were awoken. */ - wake(typedArray: Int32Array, index: number, count: number): number; + notify(typedArray: Int32Array, index: number, count: number): number; /** * Stores the bitwise XOR of a value with the value at the given position in the array, @@ -115,4 +115,4 @@ interface Atomics { readonly [Symbol.toStringTag]: "Atomics"; } -declare var Atomics: Atomics; \ No newline at end of file +declare var Atomics: Atomics;