Skip to content

Commit 0de0455

Browse files
committed
Add imaginary syntax.
1 parent 87c3831 commit 0de0455

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

example-async/src/AA.res

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,14 @@ let testFetchWithResult =
191191
}
192192
}
193193

194+
// // imaginary syntax
195+
// let testFetchWithResult = async () =>
196+
// if let Ok(response1) = await FetchResult.fetch("https://www.google.com")
197+
// && Some(url) = nextFetch(response1)
198+
// && Ok(response2) = await FetchResult.fetch(url) {
199+
// Js.log2("FetchResult response2", response2->Fetch.Response.status)
200+
// }
201+
194202
testFetchWithResult->addTest
195203

196204
//

0 commit comments

Comments
 (0)