INNER CODE UNIT · Java

asRTE

graphql-java/java-dataloader · src/jmh/java/performance/PerformanceTestingUtils.java:30

    static <T> T asRTE(Callable<T> callable) {
        try {
            return callable.call();
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }

    public static void runInToolingForSomeTimeThenExit(Runnable setup, Runnable r, Runnable tearDown) {
        int runForMillis = getRunForMillis();
        if (runForMillis <= 0) {
            System.out.print("'runForMillis' environment var is not set - continuing  \n");
            return;
        }
        System.out.printf("Running initial code in some tooling - runForMillis=%d  \n", runForMillis);
        System.out.print("Get your tooling in order and press enter...");
        readLine();
        System.out.print("Lets go...\n");

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…