src/vs/base/common/stream.ts/WriteableStreamImpl/emitEnd
class WriteableStreamImpl:	private emitEnd(): void {
		this.listeners.end.slice(0).forEach(listener => listener()); // slice to avoid listener mutation from delivering event
	}