Replace canStop with blockUntilEnded in HostedActiviy.
The canStop method gets called every second in a seperate thread until the test can be stopped. Replacing it with blockUntilEnded forwards the responsibility to stop to the test itself which has better control over the stop condition. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=163343824
Showing
with
28 additions
and
56 deletions
Please
register
or
sign in
to comment