src/vs/base/common/stream.ts/WriteableStreamImpl/flowEnd
class WriteableStreamImpl:	private flowEnd(): boolean {
		if (this.state.ended) {
			this.emitEnd();

			return this.listeners.end.length > 0;
		}

		return false;
	}