Making a separated thread for a long-running task
I’m working on my little chess engine in C#, and I want to make my search function run in the background. (so that the UI is still interactable) I checked some other stackoverflow solutions talking about the async
and await
keywords (also about Task.Run()
). But I’m at the beginner level. I could not understand what was going on, and I could not make it work for my code.
Making a seperated thread for a long-running task
I’m working on my little chess engine in C#, and I want to make my search function run in the background. (so that the UI is still interactable) I checked some other stackoverflow solutions talking about the async
and await
keywords (also about Task.Run()
). But I’m at the beginner level. I could not understand what was going on, and I could not make it work for my code.