added the method for call ExecutorService.shutdownNow.#331
Conversation
|
Question though, doesn't shutting the ExecutorService shut down all threads? It's functionally equivalent to just quitting the program as anything w/ a thread will be shut down. |
|
The shutdown methods don't quit your program. |
|
I understand that--that's why I said equivalent to, but my comment was it seems like a heavyweight way just to interrupt a single stream. Won't you have to restart the/a new ExecutorService to initiate new streams? |
|
You're correct. |
|
Seems like the best and only way for now..... |
I want to interrupt streaming response, so I added the method on
OpenAiServicefor callExecutorService.shutdownNow.