Hi guys. Need some help with coroutines.
I want to achieve something:
From one (or many coroutines / threads) something is marked as dirty.
Another coroutine waits for that marker and starts a (long running) calculation.
I want to have two things:
- the calculation should only run at most once per second
- I do not care how often the dirty marker is set (probably very often). I just want to calculate once.