2014-09-02 19:41:05 |
Joshua Harlow |
description |
When verifying some async activity has occurred using the event set/wait paradigm we should instead use our customized latch type that can return if the latch amount was reached with-in the given timeout. This latch type also performs this operation correctly (the threading event class does not return whether it was set in python 2.6 from the wait() method) so we will be able to use this correctly on all supported python versions without issue... |
When verifying some async activity has occurred using the event set/wait paradigm or latch countdown/wait paradigm we should make sure that the return result of that wait function is verified to have reached the desired
state and that instead of blocking forever when this does not happen that we block until a reasonable timeout occurs and then fail. |
|