src/index.js
function pump(reader, handler) {
	reader.read().then(result => {
		if (result.done) {
			return;
		}
		if (handler(result.value) === false) {
			// cancelling
			return;
		}
		pump(reader, handler);
	});
}
function pump(reader, handler) {
	reader.read().then(result => {
		if (result.done) {
			return;
		}
		if (handler(result.value) === false) {
			// cancelling
			return;
		}
		pump(reader, handler);
	});
}
function pump ( reader , handler ) { reader . read ( ) . then ( result => { if ( result . done ) { return ; } if ( handler ( result . value ) === false ) { // cancelling return ; } pump ( reader , handler ) ; } ) ; }
reads all chunks
reads all chunks