Right now, experimental java call task expects the java function that is invoked to return synchronously.
However, if the task is adapted to recognize CompletableFuture as a possible returned function value, then the task can be integrated with the returned CompletableFuture to be completed asynchronously.