I have a WPF window that needs to react to SizeChanged events. However, it should only perform processing when there are no further SizeChanged events for a 500 ms period (similar to the behaviour offered by BindingBase.Delay). private CancellationTokenSource lastCts; private async void Window_SizeChanged(object sender, SizeChangedEventArgs e) { if (lastCts != null) lastCts.Cancel(); lastCts = new […]
The post await too slow for frequent events; can async methods ignore cancellations? appeared first on BlogoSfera.