Skip to content

Instantly share code, notes, and snippets.

@qwerty2501
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qwerty2501/11215568 to your computer and use it in GitHub Desktop.
Save qwerty2501/11215568 to your computer and use it in GitHub Desktop.
/// <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