Merge pull request #21 from AgentSchmecker/main

Correction of Documentation for ask-async
This commit is contained in:
Amith Koujalgi 2024-02-09 12:08:33 +05:30 committed by GitHub
commit ec00ffae7f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,8 +24,8 @@ public class Main {
while (!callback.isComplete() || !callback.getStream().isEmpty()) { while (!callback.isComplete() || !callback.getStream().isEmpty()) {
// poll for data from the response stream // poll for data from the response stream
String result = callback.getStream().poll(); String result = callback.getStream().poll();
if (response != null) { if (result != null) {
System.out.print(result.getResponse()); System.out.print(result);
} }
Thread.sleep(100); Thread.sleep(100);
} }