rescript-fetch icon indicating copy to clipboard operation
rescript-fetch copied to clipboard

activate reanalyze's exception analysis for async/await

Open zth opened this issue 3 years ago • 1 comments
trafficstars

Adding this enables reanalyze to do exception analysis when using rescript-fetch with the upcoming async/await feature in ReScript v10.1.

The exception analysis in question is shown here: https://forum.rescript-lang.org/t/ann-async-await-is-coming-to-rescript/3488/16

zth avatar Oct 23 '22 18:10 zth

Hi. Thanks for this, and sorry for the slow reply. I'm not that familiar with reanalyze, so I'm a bit confused as to what this actually does though. Is this signifying that fetch can raise an exception immediately, or only that it can do so through a promise, that is then raised when awaited? If the latter, how does it distinguish between immediate exceptions and async exceptions?

Also, why does this only apply to fetch, not get or send which are aliases for fetch, or even other async functions such as Response.json?

glennsl avatar Nov 22 '22 15:11 glennsl