(t)
| 19 | Readable = require('stream').Readable |
| 20 | |
| 21 | function StreamProgressWorker(t) { |
| 22 | Readable.call(this, {objectMode: true}) |
| 23 | var self = this |
| 24 | // initialize stream from cpp on next tick |
| 25 | process.nextTick(function () { |
| 26 | var worker = bindings.a |
| 27 | worker(100, 5, function(i) { |
| 28 | self.push(i) |
| 29 | }, function () { |
| 30 | self.push(null) |
| 31 | }) |
| 32 | }) |
| 33 | } |
| 34 | util.inherits(StreamProgressWorker, Readable) |
| 35 | |
| 36 | StreamProgressWorker.prototype._read = function (data) { |
nothing calls this directly
no outgoing calls
no test coverage detected