InternetException
  • Home
  • About
Sign in Subscribe
19 Oct 2022 .NET

Avoid deadlock with asynchronous methods

  • avoid doing AsyncOperation.Result
  • parent method waits for Result while child method waits for parent thread to take control, after being done with async I/O
  • both waits
  • deadlock

Further read:

https://medium.com/rubrikkgroup/understanding-async-avoiding-deadlocks-e41f8f2c6f5d

https://stackoverflow.com/questions/15021304/an-async-await-example-that-causes-a-deadlock

Published by:

Natan Podbielski

You might also like...

18
Feb

Moving /boot partition

1 min read
18
Feb

Purging smtp services from Debian

1 min read
30
Oct

Enhancing your .NET API with query language

7 min read
28
Oct

HLinq design

18 min read
04
Oct

Disable Xunit Test on specific OS

1 min read
InternetException © 2026
  • Sign up
Powered by Ghost