We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4281aeb commit ec4327bCopy full SHA for ec4327b
dialogflow/snippets/src/main/java/com/example/dialogflow/DocumentManagement.java
@@ -134,7 +134,7 @@ public static Document getDocument(String documentName) throws Exception {
134
public static void deleteDocument(String documentName) throws Exception {
135
// Instantiates a client
136
try (DocumentsClient documentsClient = DocumentsClient.create()) {
137
- documentsClient.deleteDocumentAsync(documentName).getInitialFuture().get();
+ documentsClient.deleteDocumentAsync(documentName).get();
138
System.out.format("The document has been deleted.");
139
}
140
0 commit comments