@@ -48,15 +48,15 @@ pub fn resolve(a: value) -> Promise(value)
48
48
/// If the promise is in an error state then apply a function to convert the
49
49
/// error value back into valid value, making the promise healthy again.
50
50
///
51
- /// This is the equivilent of the `promise.catch` JavaScript method.
51
+ /// This is the equivalent of the `promise.catch` JavaScript method.
52
52
///
53
53
@ external ( javascript , "../../gleam_javascript_ffi.mjs" , "rescue" )
54
54
pub fn rescue ( a : Promise ( value) , b : fn ( Dynamic ) -> value) -> Promise ( value)
55
55
56
56
/// Chain a second asynchronous operation onto a promise, so it runs after the
57
57
/// promise has resolved.
58
58
///
59
- /// This is the equivilent of the `promise.then` JavaScript method.
59
+ /// This is the equivalent of the `promise.then` JavaScript method.
60
60
///
61
61
@ external ( javascript , "../../gleam_javascript_ffi.mjs" , "then_await" )
62
62
pub fn await ( a : Promise ( a) , b : fn ( a) -> Promise ( b) ) -> Promise ( b)
@@ -123,7 +123,7 @@ pub fn try_await(
123
123
/// Chain an asynchronous operation onto an array of promises, so it runs after the
124
124
/// promises have resolved.
125
125
///
126
- /// This is the equivilent of the [`Promise.all`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/all)
126
+ /// This is the equivalent of the [`Promise.all`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/all)
127
127
/// JavaScript static method.
128
128
///
129
129
@ external ( javascript , "../../gleam_javascript_ffi.mjs" , "all_promises" )
@@ -132,7 +132,7 @@ pub fn await_array(a: Array(Promise(a))) -> Promise(Array(a))
132
132
/// Chain an asynchronous operation onto an list of promises, so it runs after the
133
133
/// promises have resolved.
134
134
///
135
- /// This is the equivilent of the [`Promise.all`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/all)
135
+ /// This is the equivalent of the [`Promise.all`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/all)
136
136
/// JavaScript static method.
137
137
///
138
138
pub fn await_list ( xs : List ( Promise ( a) ) ) -> Promise ( List ( a) ) {
0 commit comments