我在 C# 中使用一个线程,我希望它在 40 秒后停止。事实上,我启动它,它运行了 40 秒,然后它应该停止。是否可以使用超时或计时器?
c# multithreading
c# ×1
multithreading ×1