作者:棂魂買弄l | 来源:互联网 | 2023-09-18 13:05
I need to find a way to spin off a thread from a static call and not wait for the thread to complete. Basically, a "fire and forget" approach. Can someone supply me with a simple example of how this can be accomplished?
我需要找到一种从静态调用中分离线程的方法,而不是等待线程完成。基本上,一种“即发即忘”的方法。有人能为我提供一个如何实现这一目标的简单例子吗?
5 个解决方案