Returning a value from thread?

前端 未结 17 2524
不思量自难忘°
不思量自难忘° 2020-11-27 09:45

How do I return a value from a thread?

17条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-27 10:42

    I'm no kind of expert in threading, that's why I did it like this:

    I created a Settings file and

    Inside the new thread:

    Setting.Default.ValueToBeSaved;
    Setting.Default.Save();
    

    Then I pick up that value whenever I need it.

提交回复
热议问题