We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dfa18e commit 85b0c27Copy full SHA for 85b0c27
pages/docs/manual/latest/promise.mdx
@@ -42,18 +42,18 @@ Using the [pipe operator](pipe.md):
42
let myPromise = Js.Promise.make((~resolve, ~reject) => resolve(. 2))
43
44
myPromise
45
-|> Js.Promise.then_(value => {
+-> Js.Promise.then_(value => {
46
Js.log(value)
47
Js.Promise.resolve(value + 2)
48
- })
49
+ }, _)
50
51
Js.Promise.resolve(value + 3)
52
53
-|> Js.Promise.catch(err => {
+-> Js.Promise.catch(err => {
54
Js.log2("Failure!!", err)
55
Js.Promise.resolve(-2)
56
57
```
58
```js
59
var myPromise = new Promise(function (resolve, reject) {
0 commit comments