Merge pull request #38498 from ShuiRuTian/make-atomics.notify-type-correct

make Atomics.notify last parameter optional
This commit is contained in:
Nathan Shively-Sanders
2020-05-20 11:55:01 -07:00
committed by GitHub

View File

@@ -102,8 +102,11 @@ interface Atomics {
/**
* Wakes up sleeping agents that are waiting on the given index of the array, returning the
* number of agents that were awoken.
* @param typedArray A shared Int32Array.
* @param index The position in the typedArray to wake up on.
* @param count The number of sleeping agents to notify. Defaults to +Infinity.
*/
notify(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,