My problem might be very easy to solve, but I don\'t get it at the moment. In my Quarkus-App I have a REST-Endpoint which should call a method, don\'t wait for the result an
We've found a solution:
@POST
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public Response calculateAsync(String input) {
Uni.createFrom().item(input).emitOn(Infrastructure.getDefaultWorkerPool()).subscribe().with(
item -> process(input), Throwable::printStackTrace
);
return Response.accepted().build();
}