Skip to content

Refactored use of async. (#215)#1

Merged
dotMorten merged 1 commit into
dotMorten:masterfrom
microsoft:master
Feb 15, 2017
Merged

Refactored use of async. (#215)#1
dotMorten merged 1 commit into
dotMorten:masterfrom
microsoft:master

Conversation

@dotMorten
Copy link
Copy Markdown
Owner

  • Refactored use of async. No tight while-loops but instead using await and continue on background threads.

  • Remove use of .Wait() to avoid potential deadlocks. increase use of ConfigureAwait, and remove await where not needed

  • Simplified async code. Instead of forwarding to tasks and have to switch to ui thread, it's easier to just await and continue on the same thread here.

* Refactored use of async. No tight while-loops but instead using await and continue on background threads.

* Remove use of .Wait() to avoid potential deadlocks. increase use of ConfigureAwait, and remove await where not needed

* Simplified async code. Instead of forwarding to tasks and have to switch to ui thread, it's easier to just await and continue on the same thread here.
@dotMorten dotMorten merged commit 77231e1 into dotMorten:master Feb 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant