Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
/// <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