@@ -335,9 +335,9 @@ default AsyncSession asyncSession(SessionConfig sessionConfig) {
335
335
* <p>
336
336
* This operation works the same way as {@link #closeAsync()} but blocks until all resources are closed.
337
337
* <p>
338
- * Please note that this method is intended for graceful shutdown only and expects that all driver interactions have
339
- * either been finished or no longer awaited for. Pending driver API calls may not be completed after this method is
340
- * invoked .
338
+ * Since this method is intended for graceful shutdown only, it is strongly recommended to finish interaction with
339
+ * all driver resources (like sessions, transactions, results, etc.) before invoking this method. Not doing this may
340
+ * result in unspecified behaviour, including leaving driver execution unfinished indefinitely .
341
341
*/
342
342
@ Override
343
343
void close ();
@@ -348,9 +348,9 @@ default AsyncSession asyncSession(SessionConfig sessionConfig) {
348
348
* This operation is asynchronous and returns a {@link CompletionStage}. This stage is completed with
349
349
* {@code null} when all resources are closed. It is completed exceptionally if termination fails.
350
350
* <p>
351
- * Please note that this method is intended for graceful shutdown only and expects that all driver interactions have
352
- * either been finished or no longer awaited for. Pending driver API calls may not be completed after this method is
353
- * invoked .
351
+ * Since this method is intended for graceful shutdown only, it is strongly recommended to finish interaction with
352
+ * all driver resources (like sessions, transactions, results, etc.) before invoking this method. Not doing this may
353
+ * result in unspecified behaviour, including leaving driver execution unfinished indefinitely .
354
354
*
355
355
* @return a {@link CompletionStage completion stage} that represents the asynchronous close.
356
356
*/
0 commit comments