Wait for method to finish

后端 未结 3 1691
隐瞒了意图╮
隐瞒了意图╮ 2020-12-18 05:25

How can I wait for a method to finish using C#?

3条回答
  •  一个人的身影
    2020-12-18 05:54

    I assume you are asking how to wait for a Code executing on another Thread in your main Thread . For that purpose Thread.Join() method will do what you want.

    (A nice tutorial on how to do Multithreading.)

提交回复
热议问题