Skip to content

Commit e7091ab

Browse files
authored
Update ResponseBodyEmitterController.java
1 parent a121354 commit e7091ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎spring-5-mvc/src/main/java/com/baeldung/web/ResponseBodyEmitterController.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
@Controller
1515
public class ResponseBodyEmitterController {
16-
private ExecutorService nonBlockingService = Executors.newSingleThreadExecutor();
16+
private ExecutorService nonBlockingService = Executors.newCachedThreadPool();
1717

1818
@GetMapping(Constants.API_RBE)
1919
public ResponseEntity<ResponseBodyEmitter> handleRbe() {

0 commit comments

Comments
 (0)