private void button1_Click(object sender, EventArgs e)
{
Mymethodasync();
}
public async Task Mymethodasync()
{
Console.WriteLine("1");
Task
Console.WriteLine("2");
int output = await llrr;
Console.WriteLine("3");
}
public async Task
{
Console.WriteLine("longrun Task");
await Task.Delay(1000);
Console.WriteLine("longrun Task Done");
return 1;
}
댓글 없음:
댓글 쓰기