This is happening while developing for Mac so I'm posting it here, though I suspect it may be a wider issue.
in an async method that gets passed an IEnumerable if I attempt to do a .Count() on it, I get an
AppKitThreadAccessException: AppKit Consistency error: you are calling a method that can only be invoked from the UI thread
exception.
Which I find baffling. Anyone know what is going on?
n/m
Problem with deferred execution.
The UI thread was passing in a deferred enumerator and things obviously went south once it began to iterate in the async thread.
Answers
n/m
Problem with deferred execution.
The UI thread was passing in a deferred enumerator and things obviously went south once it began to iterate in the async thread.