Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc526b42

Browse files
authored
Merge pull requestmicrosoft#38498 from ShuiRuTian/make-atomics.notify-type-correct
make Atomics.notify last parameter optional
2 parentsa569603 +df77232 commitc526b42

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)

[8]ページ先頭

©2009-2025 Movatter.jp