Pump: return resolved promise when pump already ended in .whenFinished()
Updated example