git ssb

3+

cel / ssb-npm-registry



Tree: d2f2697f296dd39aed6a8b63c6d04a736a7db5b3

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.
6var pull = require('pull-stream')
7var through = require('through')
8var toPull = require('../')
9
10pull(
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