Files: d2f2697f296dd39aed6a8b63c6d04a736a7db5b3 / node_modules / stream-to-pull-stream / test / stack.js
392 bytesRaw
1 | |
2 | //getting stack overflows from writing too fast. |
3 | //I think it's because there is a recursive loop |
4 | //which stacks up there are many write that don't drain. |
5 | //try to reproduce it. |
6 | var pull = require('pull-stream') |
7 | var through = require('through') |
8 | var toPull = require('../') |
9 | |
10 | pull( |
11 | pull.count(1000000), |
12 | pull.map(function (e) { |
13 | return e.toString()+'\n' |
14 | }), |
15 | toPull.sink(through()) |
16 | ) |
17 |
Built with git-ssb-web