Skip to content

Commit df77232

Browse files
author
Song Gao
committed
make last para of Actomics.notify optional.
1 parent f4872eb commit df77232

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lib/es2017.sharedmemory.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,11 @@ interface Atomics {
102102
/**
103103
* Wakes up sleeping agents that are waiting on the given index of the array, returning the
104104
* number of agents that were awoken.
105+
* @param typedArray A shared Int32Array.
106+
* @param index The position in the typedArray to wake up on.
107+
* @param count The number of sleeping agents to notify. Defaults to +Infinity.
105108
*/
106-
notify(typedArray: Int32Array, index: number, count: number): number;
109+
notify(typedArray: Int32Array, index: number, count?: number): number;
107110

108111
/**
109112
* Stores the bitwise XOR of a value with the value at the given position in the array,

0 commit comments

Comments
 (0)