❔ Data doesnt get set with DispatcherQueue.TryEnqueue()
I try to get my camera feed with opencv on a non UI thread in WinUI 3. It's weird the data gets pushed into the queue, but the function doesn't get fired.
I start CaptureAsync with
I do have two options. Fix the Task.Yield() problem or let it run on a secondary thread and fix the queue data. What would you do?
I start CaptureAsync with
Task.Run() because when I start it with CaptureAsync().ConfigureAwait(false); the UI gets blocked even with Task.Yield.I do have two options. Fix the Task.Yield() problem or let it run on a secondary thread and fix the queue data. What would you do?