colossus
if a handler is passed, the buffer will call the handler's readyForData, and it will call it's own handleWrite if interestRW is true
This can be used to test folding on pipes.
val pipe = new InfinitePipe[Int, Int] val foldDB = pipe.fold(0){(a, b) => a + b} val tester = new FoldTester(foldCB) pipe.push(3) pipe.push(4) pipe.complete() tester.expect(7)
This can be used to test folding on pipes.