From 9b9d01c1a0f32181493f1d5f5d2b6f8b89d3ea24 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Tue, 23 May 2023 11:59:20 +0200 Subject: [PATCH] Adopt to changed AwaitKt utility. Closes #2832 --- .../data/repository/core/support/RepositoryMethodInvoker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/springframework/data/repository/core/support/RepositoryMethodInvoker.java b/src/main/java/org/springframework/data/repository/core/support/RepositoryMethodInvoker.java index dddb0140f..8e4f283f4 100644 --- a/src/main/java/org/springframework/data/repository/core/support/RepositoryMethodInvoker.java +++ b/src/main/java/org/springframework/data/repository/core/support/RepositoryMethodInvoker.java @@ -181,7 +181,7 @@ abstract class RepositoryMethodInvoker { result = (Publisher) collectToList(result); } - return AwaitKt.awaitSingleOrNull(result, continuation); + return AwaitKt.awaitFirstOrNull(result, continuation); } catch (Exception e) { multicaster.notifyListeners(method, args, computeInvocationResult(invocationResultCaptor.error(e))); throw e;