以下代码使 UI 线程挂起。
    private void button1_Click(object sender, EventArgs e)
    {
        Thread t = new Thread(Func);
        t.Start();
    }
    private void Func()
    {
        this.Invoke((Action)(() =>
        {
            while (true);
        }));
    }
我希望Func()每次单击按钮时都在不同的工作线程中调用,而不会冻结任何 UI 线程。
最好的解决方法是什么?