common/src/main/java/lighthouse/threading/AffinityExecutor.java
default <T> T fetchFrom(Supplier<T> fetcher) {
        if (isOnThread())
            return fetcher.get();
        else
            return checkedGet(CompletableFuture.supplyAsync(fetcher, this));
    }
/**
     * Runs the given function on the executor, blocking until the result is available. Be careful not to deadlock this
     * way! Make sure the executor can't possibly be waiting for the calling thread.
     */
Runs the given function on the executor, blocking until the result is available. Be careful not to deadlock this
way. Make sure the executor can't possibly be waiting for the calling thread.
Runs the given function on the executor blocking until the result is available . Be careful not to deadlock this way . Make sure the executor can ' t possibly be waiting for the calling thread .
default <T> T fetchFrom(Supplier<T> fetcher) {
        if (isOnThread())
            return fetcher.get();
        else
            return checkedGet(CompletableFuture.supplyAsync(fetcher, this));
    }
default < T > T fetchFrom ( Supplier < T > fetcher ) { if ( isOnThread ( ) ) return fetcher . get ( ) ; else return checkedGet ( CompletableFuture . supplyAsync ( fetcher , this ) ) ; }
Runs the given function on the executor, blocking until the result is available.
Runs the given function on the executor blocking until the result is available .