evilsoft / evilsoft/crocks

Maximum call stack size for Async monad

Open
#448 6 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.