Created
October 20, 2017 22:15
-
-
Save abdelkader/f2a23b887bfbb684edefc32f18dd195b 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 partial class Form1 : Form | |
{ | |
public Form1() | |
{ | |
InitializeComponent(); | |
} | |
private async void button1_Click(object sender, EventArgs e) | |
{ | |
await Run(); | |
} | |
private async Task Run() | |
{ | |
await Task.Delay(5000); // wait for the task to finish. | |
label1.Text = "test"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment