private async Task WaitForCompileJobs() { await Task.Factory.StartNew(() => { while (numTasks > 0) { Thread.Sleep(10); } }); }