Maximum call stack size for Async monad
Open
- Dominant language
- JavaScript
- Stars
- 1.6k
- Forks
- 103
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Async Monad will raise error call stack size
**To Reproduce**
```javascript
import {Async, traverse, map} from 'crocks';
import {range} from 'ramda';
const wrap = a => Async((rej, res) => res(a))
traverse(Async.of, wrap, range(0, 4000)).fork(console.error, console.log)
```
**Expected behavior**
I think we can trampoline so we don't get this error.
**Additional context**
maybe there is another way for traverse that I'm not aware of.
Contributor guide
Assessment
This issue has not been assessed yet.