rescript-association / rescript-lang.org

Official documentation website for the ReScript programming language
https://rescript-lang.org
MIT License
1.86k stars 246 forks source link

Add section about async loops to control-flow and/or async/await page(s) #651

Open fhammerschmidt opened 1 year ago

fhammerschmidt commented 1 year ago

As there are not all syntactical gimmicks from JS available in ReScript (like for-await...of), it would help to cover these special cases in their own section. One possible workaround is described here: https://github.com/rescript-association/rescript-core/blob/main/src/Core__AsyncIterator.resi#L35

fhammerschmidt commented 1 year ago

@zth

ryyppy commented 1 year ago

This could probably live under the new async/await section.