Skip to content

Commit

Permalink
yegor256#265 Exception removed
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jun 29, 2017
1 parent ad01303 commit 866241a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/cactoos/func/AsyncFunc.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public AsyncFunc(final Func<X, Y> fnc, final ThreadFactory fct) {
}

@Override
public Future<Y> apply(final X input) throws Exception {
public Future<Y> apply(final X input) {
return Executors.newSingleThreadExecutor(this.factory).submit(
() -> this.func.apply(input)
);
Expand Down

0 comments on commit 866241a

Please sign in to comment.