stream.finished()` returns a Promise that resolves when a stream has finished processing or rejects if an error occurs. It provides a convenient way to handle stream completion in an asynchronous and Promise-based manner.
0-2 years experience
2-5 years experience
5-8 years experience
8+ years experience