mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
Make TaskCallback a @FunctionalInterface
This commit is contained in:
@@ -36,6 +36,7 @@ import org.jspecify.annotations.Nullable;
|
||||
* @param <E> the exception propagated, if any
|
||||
* @see SyncTaskExecutor#execute(TaskCallback)
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface TaskCallback<V extends @Nullable Object, E extends Exception> extends Callable<V> {
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user