[#5012] [#5014] Use ForkJoinPool.ManagedBlock

This commit is contained in:
lukaseder 2016-02-05 11:44:07 +01:00
parent 94b501acf5
commit 17888d1c54

View File

@ -2967,9 +2967,8 @@ final class Utils {
@SuppressWarnings("unchecked")
static <T, S extends Supplier<T>> S blocking(S supplier) {
return (S) new Supplier<T>() {
static <T> Supplier<T> blocking(Supplier<T> supplier) {
return new Supplier<T>() {
volatile T asyncResult;
@Override