Fixes currently not working code snippet for ask-async doc

This commit is contained in:
Markus Klenke 2024-02-08 22:52:41 +00:00
parent 02bf769188
commit d969c7ad46

View File

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