src/vs/workbench/contrib/audioCues/browser/observable.ts/transaction
export function transaction(fn: (tx: ITransaction) => void) {
	const tx = new TransactionImpl();
	try {
		fn(tx);
	} finally {
		tx.finish();
	}
}