2021 https://nuancesprog.ru/p/14205/ ! just use CompletableFuture<...>