Await cancell

This commit is contained in:
Michael Bucari-Tovo 2022-06-19 18:49:47 -06:00
parent 3cd394ec10
commit c51489ac74

View File

@ -209,10 +209,10 @@ namespace LibationWinForms.ProcessQueue
toolStripProgressBar1.Value = Queue.Completed.Count;
}
private void cancelAllBtn_Click(object sender, EventArgs e)
private async void cancelAllBtn_Click(object sender, EventArgs e)
{
Queue.ClearQueue();
Queue.Current?.CancelAsync();
await Queue.Current?.CancelAsync();
virtualFlowControl2.VirtualControlCount = Queue.Count;
UpdateAllControls();
}