There isn't yet support for synchronous responses, but there is a workaround: s
end the actor a CompletableFuture or similar as method parameter.
Then the caller code would be:
Future<String> f = new CompletableFuture<>();
actor.doSomething(f);
String result = f.get();
And the actor would be:
public void doSomething(CompletableFuture<String> result) {
result.complete("the result");
}
I might later improve jumi-actors to support that with less boilerplate (so that you can return a Future from the actor method).