Skip to content

Commit

Permalink
Merge pull request #1316 from quarkusio/topic.0817.reactive-nonblocki…
Browse files Browse the repository at this point in the history
…ng-annotation

Add @nonblocking in reactive /hello endpoint
  • Loading branch information
cescoffier authored Aug 17, 2023
2 parents dd2d4dc + dadc5bc commit 5b001f9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.acme.getting.started;

import io.smallrye.common.annotation.NonBlocking;
import jakarta.inject.Inject;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
Expand Down Expand Up @@ -40,6 +41,7 @@ public Multi<String> greetingsAsStream(int count, String name) {

@GET
@Produces(MediaType.TEXT_PLAIN)
@NonBlocking
public String hello() {
return "hello";
}
Expand Down

0 comments on commit 5b001f9

Please sign in to comment.