How from one thread to suspend the robot of a child thread. Here I have the code:
currentThread = new Thread(() => PlayMp3FromUrl(url)); currentThread.IsBackground = true; currentThread.Start(); And then I need to suspend the running thread, with the possibility of continuing its work in the future. I know that the current stream can be suspended with
Thread.Sleep(Timeout.Infinite); And about the suspension from one thread of another thread found only the outdated methods Thread.Suspend and Thread.Resume.