rescript-lang / rescript-lang/rescript-lang.org

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

Open
#651 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
MDX
Stars
1.9k
Forks
260
Avg merge
3d 9h
Merged PRs (30d)
17

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the control-flow and async/await documentation pages, then read the linked Core__AsyncIterator.resi workaround. Document the special async-loop cases that ReScript does not support directly and explain the relevant workaround; done when the guidance is clear on the appropriate page or pages.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.