Skip to content

Commit

Permalink
WebFlux blocking configuration documentation fix
Browse files Browse the repository at this point in the history
The `BlockingExecutionConfigurer.setExecutor` takes an `AsyncTaskExecutor` not an `Executor` as the documentation states. With this commit this has been corrected.
  • Loading branch information
mdeinum committed Sep 1, 2023
1 parent 093d6a1 commit 9ff4bf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework-docs/modules/ROOT/pages/web/webflux/config.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ reliance on it.
The WebFlux Java config allows you to customize blocking execution in WebFlux.

You can have blocking controller methods called on a separate thread by providing
an `Executor` such as the
an `AsyncTaskExecutor` such as the
{api-spring-framework}/core/task/VirtualThreadTaskExecutor.html[`VirtualThreadTaskExecutor`]
as follows:

Expand All @@ -761,7 +761,7 @@ Java::
@Override
public void configureBlockingExecution(BlockingExecutionConfigurer configurer) {
Executor executor = ...
AsyncTaskExecutor executor = ...
configurer.setExecutor(executor);
}
}
Expand Down

0 comments on commit 9ff4bf5

Please sign in to comment.