mentat/sdks
Nick Alexander 190e05e360 [sdks/android] Part 2: Replace Expectation/wait/notify with CountDownLatch.
Locally, I witnessed very slow tests.  Profiling with Visual VM
revealed a lot of time spent in `wait`.

Digging in, we were trying to be clever, with a `wait(1000)/notify`
mechanism.  However, there were never multiple threads in play, so the
waiter wasn't waiting when `notify` was invoked.  That means we always
timed out.  I think this never worked and using bare `wait()` would
have revealed that.

Anyway, `CountDownLatch` maintains the one bit of state (was I
notified) and generalizes smoothly to when we have threads.
2018-07-27 10:43:53 -07:00
..
android [sdks/android] Part 2: Replace Expectation/wait/notify with CountDownLatch. 2018-07-27 10:43:53 -07:00
swift/Mentat [sdks] Make store_open{_encrypted} return useful errors. 2018-07-26 13:01:53 -07:00