C# Thread.Sleep 不卡UI

//Thread.Sleep 不卡UI
//async await
//Task
//低版本也能用(委托的BeginInvoke);





AsyncCallback callBack = new AsyncCallback(s =>
{
    Console.WriteLine("执行完毕,开始回调");
});

private void labCopyCode_Click(object sender, EventArgs e)
{
    Clipboard.SetText(labCode.Text);
    SucceedUI(labCopyCode);
    
    Action

你可能感兴趣的:(C#)