You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
392 B
16 lines
392 B
|
|
//getting stack overflows from writing too fast. |
|
//I think it's because there is a recursive loop |
|
//which stacks up there are many write that don't drain. |
|
//try to reproduce it. |
|
var pull = require('pull-stream') |
|
var through = require('through') |
|
var toPull = require('../') |
|
|
|
pull( |
|
pull.count(1000000), |
|
pull.map(function (e) { |
|
return e.toString()+'\n' |
|
}), |
|
toPull.sink(through()) |
|
)
|
|
|