GP-0: Fixing test fallout from GP-690

This commit is contained in:
Dan 2021-02-16 12:15:23 -05:00
parent 3093e2dd2a
commit b69c3d6c50
16 changed files with 155 additions and 88 deletions

View file

@ -15,8 +15,7 @@
*/
package ghidra.async;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.*;
import ghidra.util.SystemUtilities;
@ -32,4 +31,8 @@ public interface AsyncTestUtils {
throw AsyncUtils.unwrapThrowable(e);
}
}
default void waitOn(Executor executor) throws Throwable {
waitOn(CompletableFuture.supplyAsync(() -> null, executor));
}
}