In C++, we can use the function
wait_for(lock, delay, []{return i == 1;}))
with condition variables for synchronization, I start working in a small application using C# (my first contact with C#), and I need the exact same functionality, but I did not find a good substitue to this function.
I there any function that did the exact same behaviour or I need to implement the logic myself ?
lockandMonitorto implement condition variables. stackoverflow.com/questions/15657637/condition-variables-c-net