You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make a DispatchQueue with DispatchQualityOfService.Background as an attribute, like so -
var qos = new DispatchQueue.Attributes {
QualityOfService = DispatchQualityOfService.Background
};
thumbnailQueue = new DispatchQueue("ThumbnailQueue", qos);
A UITraitCollection like - thumbnailTraitCollection = new UITraitCollection();
According to the docs , this method can be called from any thread in the app. So we expect all the print statements to be executed.
Actual Behavior
However, we get an error after the first print statement. The thread can be seen to be a non-main thread (thread id > 0), after which we get the following error -
spouliot
added
bug
If an issue is a bug or a pull request a bug fix
and removed
enhancement
The issue or pull request is an enhancement
labels
Aug 28, 2019
Steps to Reproduce
DispatchQueue
withDispatchQualityOfService.Background
as an attribute, like so -UITraitCollection
like -thumbnailTraitCollection = new UITraitCollection();
Expected Behavior
According to the docs , this method can be called from any thread in the app. So we expect all the print statements to be executed.
Actual Behavior
However, we get an error after the first print statement. The thread can be seen to be a non-main thread (thread id > 0), after which we get the following error -
This was found while trying to port a sample from swift to C#. The swift code is -
Here it seems to work, but not in C#
Environment
Build Logs
https://gist.github.com/prmallic/394066cdc51d3724175bb87ae76cc170
Example Project (If Possible)
The text was updated successfully, but these errors were encountered: