@@ -1148,32 +1148,32 @@ pub mod Atomics {
1148
1148
/// Note: This operation only works with a shared `Int32Array`
1149
1149
/// and may not be allowed on the main thread.
1150
1150
///
1151
- /// You should use `wait_bigint` to operate on a `BigInt64Array` or a `BigUint64Array` .
1151
+ /// You should use `wait_bigint` to operate on a `BigInt64Array`.
1152
1152
///
1153
1153
/// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/wait)
1154
1154
#[ wasm_bindgen( js_namespace = Atomics , catch) ]
1155
1155
pub fn wait ( typed_array : & Int32Array , index : u32 , value : i32 ) -> Result < JsString , JsValue > ;
1156
1156
1157
1157
/// The static `Atomics.wait()` method verifies that a given
1158
- /// position in an `Int32Array ` still contains a given value
1158
+ /// position in an `BigInt64Array ` still contains a given value
1159
1159
/// and if so sleeps, awaiting a wakeup or a timeout.
1160
1160
/// It returns a string which is either "ok", "not-equal", or "timed-out".
1161
- /// Note: This operation only works with a shared `Int32Array `
1161
+ /// Note: This operation only works with a shared `BigInt64Array `
1162
1162
/// and may not be allowed on the main thread.
1163
1163
///
1164
- /// This method is used to operate on a `BigInt64Array` or a `BigUint64Array `.
1164
+ /// You should use `wait` to operate on a `Int32Array `.
1165
1165
///
1166
1166
/// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/wait)
1167
1167
#[ wasm_bindgen( js_namespace = Atomics , catch, js_name = wait) ]
1168
1168
pub fn wait_bigint (
1169
- typed_array : & Int32Array ,
1169
+ typed_array : & BigInt64Array ,
1170
1170
index : u32 ,
1171
1171
value : i64 ,
1172
1172
) -> Result < JsString , JsValue > ;
1173
1173
1174
1174
/// Like `wait()`, but with timeout
1175
1175
///
1176
- /// You should use `wait_with_timeout_bigint` to operate on a `BigInt64Array` or a `BigUint64Array` .
1176
+ /// You should use `wait_with_timeout_bigint` to operate on a `BigInt64Array`.
1177
1177
///
1178
1178
/// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/wait)
1179
1179
#[ wasm_bindgen( js_namespace = Atomics , catch, js_name = wait) ]
@@ -1186,12 +1186,12 @@ pub mod Atomics {
1186
1186
1187
1187
/// Like `wait()`, but with timeout
1188
1188
///
1189
- /// This method is used to operate on a `BigInt64Array` or a `BigUint64Array `.
1189
+ /// You should use `wait_with_timeout` to operate on a `Int32Array `.
1190
1190
///
1191
1191
/// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/wait)
1192
1192
#[ wasm_bindgen( js_namespace = Atomics , catch, js_name = wait) ]
1193
1193
pub fn wait_with_timeout_bigint (
1194
- typed_array : & Int32Array ,
1194
+ typed_array : & BigInt64Array ,
1195
1195
index : u32 ,
1196
1196
value : i64 ,
1197
1197
timeout : f64 ,
0 commit comments