We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4e8952 commit 32e9879Copy full SHA for 32e9879
tests/test-javalin-jsonb/src/main/java/org/example/myapp/web/test/TestController.java
@@ -3,8 +3,10 @@
3
import java.util.List;
4
import java.util.Map;
5
import java.util.Set;
6
+import java.util.concurrent.CompletableFuture;
7
8
import org.example.myapp.web.AppRoles;
9
+import org.example.myapp.web.HelloDto;
10
import org.example.myapp.web.Roles;
11
12
import io.avaje.http.api.Controller;
@@ -122,4 +124,10 @@ void neo(
122
124
123
125
System.out.println("Ever have that feeling where you're not sure if you're awake or dreaming?");
126
}
127
+
128
+ @Get("/async")
129
+ CompletableFuture<HelloDto> getAllAsync() {
130
+ return CompletableFuture.supplyAsync(() -> new HelloDto(12, "Jim", "asd"));
131
+ }
132
133
0 commit comments