Skip to content

Commit

Permalink
Remove SafeFuture.supplyAsync() as we are not using it, we should use…
Browse files Browse the repository at this point in the history
… own AsyncRunner when needed
  • Loading branch information
zilm13 committed Oct 17, 2023
1 parent 8759d76 commit 28e7c30
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -454,10 +454,6 @@ public SafeFuture<T> catchAndRethrow(final ExceptionThrowingConsumer<Throwable>
});
}

public static <U> SafeFuture<U> supplyAsync(final Supplier<U> supplier) {
return SafeFuture.of(CompletableFuture.supplyAsync(supplier));
}

@SuppressWarnings("unchecked")
@Override
public <U> SafeFuture<U> thenApply(final Function<? super T, ? extends U> fn) {
Expand Down

0 comments on commit 28e7c30

Please sign in to comment.