doc: util.pump is deprecated. Use Stream.pipe

Conflicts:

	doc/api/util.markdown
This commit is contained in:
isaacs 2012-08-05 14:47:23 -07:00
parent 2f7e0f2da6
commit 0414e14702

View File

@ -170,7 +170,7 @@ Returns `true` if the given "object" is an `Error`. `false` otherwise.
## util.pump(readableStream, writableStream, [callback]) ## util.pump(readableStream, writableStream, [callback])
**Deprecated** Stability: 0 - Deprecated: Use readableStream.pipe(writableStream)
Read the data from `readableStream` and send it to the `writableStream`. Read the data from `readableStream` and send it to the `writableStream`.
When `writableStream.write(data)` returns `false` `readableStream` will be When `writableStream.write(data)` returns `false` `readableStream` will be