Skip to content

Commit d6a49d8

Browse files
committed
updating concurrency docs
1 parent b790ac6 commit d6a49d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ client.on("topic1.*", (Object... eventArgs) -> {
150150
#### Concurrency Support
151151

152152
The underlying EventEmitter implementation uses a single thread for event handling. If you need to handle events concurrently,
153-
consider using a thread pool or executor service to process events in parallel.
153+
or block the active thread, DO use a thread pool or executor service to process events in a separate thread.
154154

155-
You can access the client `ExecutorService` instance by calling the `getExecutorService()` method:
155+
For example, you can access the client `ExecutorService` instance by calling the `getExecutorService()` method:
156156

157157
```java
158158
client.on("secure/inbound.gettime", (Object... eventArgs) -> {

0 commit comments

Comments
 (0)