-
Notifications
You must be signed in to change notification settings - Fork 538
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Xamarin.Android.Build.Tasls] Rework AsyncTask stuff a bit
We should be using `ConfigureAwait(false)` for our `Task.Run` calls to ensure that the Continuations do NOT run on the main thread. This is probably the reason why VS locks up when we call these methods. The Continuation which calls `Complete` is trying to run on the UI thread, which will be locked waiting for the Task to complete. We should also provide the Cancelation Token and the TaskScheduler for the `Parallel.ForEach` calls.
- Loading branch information
1 parent
fcdb347
commit 96c885c
Showing
4 changed files
with
17 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters