src/tools/exhaust.js
/**
* Exhausts a stream.
* @param {Stream} stream the stream to read from
*/
export function exhaust ( stream ) {
while ( stream.read( ) !== null ) ;
}
/**
* Exhausts a stream.
* @param {Stream} stream the stream to read from
*/
export function exhaust ( stream ) {
while ( stream.read( ) !== null ) ;
}