File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/main/java/io/tarantool/driver/core Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -440,8 +440,12 @@ private <S> CompletableFuture<S> wrapOperation(Supplier<CompletableFuture<S>> op
440
440
441
441
private TarantoolSpaceOperations <T , R > getTarantoolSpaceOperationsRetrying (
442
442
Supplier <TarantoolSpaceOperations <T , R >> spaceSupplier ) {
443
+ CompletableFuture <TarantoolSpaceOperations <T , R >> wrapperForSync = new CompletableFuture <>();
443
444
try {
444
- return wrapOperation (() -> CompletableFuture .supplyAsync (spaceSupplier , executor )).get ();
445
+ return wrapOperation (() -> {
446
+ wrapperForSync .complete (spaceSupplier .get ());
447
+ return wrapperForSync ;
448
+ }).get ();
445
449
} catch (InterruptedException e ) {
446
450
throw new CompletionException (e );
447
451
} catch (ExecutionException e ) {
You can’t perform that action at this time.
0 commit comments