Originally published on the Germanium's project website: http://www.germaniumhq.com/2016/06/02/2016-06-02-Germanium-1.7.11-Is-Released/
This version has a far better implementation of the wait() function, that has the following guarantees:
- All the closures will be ran at least once, both the wait conditions, and the while_not conditions.
- In case the closures take more than 400ms to execute, no wait will happen, but the closures will be executed again imediatelly.
- In case the evaluation of the closures takes less than 400ms, the time of the closure execution will be substracted from the wait(): for example if the closures took 250ms, the wait will be only 150ms, to compensate for the run time, so each loop stays at ~400ms.
In Action
Here’s the canonical simple google search with our wait in action:
