Last active
August 29, 2015 14:00
-
-
Save qwerty2501/11215254 to your computer and use it in GitHub Desktop.
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
//ライブラリ側のコード | |
public class DeadlockSample | |
{ | |
public static async Task DoAsync() | |
{ | |
//規定のawaitだとライブラリユーザにWaitされた場合デッドロックになる可能性がある | |
await HeavyWorkAsync(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment