Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Foundation] Fix hack in NSUrlSessionHandler to avoid a deadlock. (#2…
…0327) Calling [Try]SetResult on a default TaskCompletionSource will call any continuations on the same thread. This can lead to deadlocks (thus the hack to run TrySetResult in a background thread), so avoid it by configuring the TaskCompletionSource to call continutations asynchronously. Ref: https://devblogs.microsoft.com/premier-developer/the-danger-of-taskcompletionsourcet-class/
- Loading branch information
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
bb775d0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📚 [CI Build] Artifacts 📚
Packages generated
View packages
Pipeline on Agent
Hash: [CI build]