src/vs/base/parts/ipc/common/ipc.net.ts/Queue/toArray
class Queue:	public toArray(): T[] {
		const result: T[] = [];
		let resultLen = 0;
		let it = this._first;
		while (it) {
			result[resultLen++] = it.data;
			it = it.next;
		}
		return result;
	}