Last active
August 29, 2015 14:00
-
-
Save qwerty2501/11215568 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
/// <summary> | |
/// GUIアプリケーションのコードビハインド | |
/// </summary> | |
public sealed partial class MainPage : Page | |
{ | |
public MainPage() | |
{ | |
this.InitializeComponent(); | |
} | |
private async void Button_Click(object sender, RoutedEventArgs e) | |
{ | |
var t = DeadlockSample.DoAsync(); | |
//ここでデッドロックする | |
t.Wait(); | |
//ここに到達はしない | |
var messageDialog = new MessageDialog("非同期メソッド通過"); | |
await messageDialog.ShowAsync(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment