Is there any way to "cancel" the:
std::this_thread::sleep_until(now + std::chrono::milliseconds(200));
Let's imagine the following scenario:
I set my thread to wake up in 200ms... but after 10ms, I receive a new request that my thread must wake up in 100ms...
So the thread should wake up in: 100ms and then at 200ms (after the current time, of course).
Thanks :)